1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avdevice/dshow: Cleanup also on av_log case

Fixes: CID1598550 Resource leak

Sponsored-by: Sovereign Tech Fund
Reviewed-by: Roger Pack <rogerdpack@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-05-27 01:52:26 +02:00
parent daf61dddc8
commit 25f9211bdd
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -1001,7 +1001,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
" ch=%2u, bits=%2u, rate=%6lu\n",
fx->nChannels, fx->wBitsPerSample, fx->nSamplesPerSec
);
continue;
goto next;
}
if (
(requested_sample_rate && requested_sample_rate != fx->nSamplesPerSec) ||