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:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user