提交 153fadc3 编写于 作者: R Rémi Denis-Courmont 提交者: Anton Khirnov

ff_get_format: fix infinite loop

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册