aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2014-10-06 17:41:00 +0300
committerAnton Khirnov <anton@khirnov.net>2014-10-06 18:39:45 +0000
commit153fadc390d05aa47e5e2c56290401898fe41a23 (patch)
treebf009f72015133bc4afc0b9450b0801a3e07e9fe /libavcodec
parent577899a6458ccad9026eb268f10dc0b39c224c8d (diff)
downloadffmpeg-153fadc390d05aa47e5e2c56290401898fe41a23.tar.gz
ff_get_format: fix infinite loop
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 94eca9bd11..80ba858b23 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);