---
libavcodec/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index a472076..a7daf6d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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);
--
2.1.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel