Commit 153fadc3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Anton Khirnov

ff_get_format: fix infinite loop

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 577899a6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment