You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ff_get_format: fix infinite loop
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
577899a645
commit
153fadc390
@@ -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);
|
||||
|
Reference in New Issue
Block a user