1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ff_get_format: fix infinite loop

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Rémi Denis-Courmont 2014-10-06 17:41:00 +03:00 committed by Anton Khirnov
parent 577899a645
commit 153fadc390

View File

@ -973,7 +973,7 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
do
choices[n] = choices[n + 1];
while (choices[n] != AV_PIX_FMT_NONE);
while (choices[n++] != AV_PIX_FMT_NONE);
}
av_freep(&choices);