[FFmpeg-cvslog] ff_get_format: fix infinite loop
Rémi Denis-Courmont
git at videolan.org
Tue Oct 7 02:40:10 CEST 2014
ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 6 17:41:00 2014 +0300| [153fadc390d05aa47e5e2c56290401898fe41a23] | committer: Anton Khirnov
ff_get_format: fix infinite loop
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=153fadc390d05aa47e5e2c56290401898fe41a23
---
libavcodec/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 94eca9b..80ba858 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);
More information about the ffmpeg-cvslog
mailing list