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 do
choices[n] = choices[n + 1]; choices[n] = choices[n + 1];
while (choices[n] != AV_PIX_FMT_NONE); while (choices[n++] != AV_PIX_FMT_NONE);
} }
av_freep(&choices); av_freep(&choices);