[FFmpeg-cvslog] lavf/allformats: remove left-over index decrement
Josh de Kock
git at videolan.org
Mon Apr 2 04:20:23 EEST 2018
ffmpeg | branch: master | Josh de Kock <josh at itanimul.li> | Sun Apr 1 03:07:11 2018 +0100| [db85d657faabf8e5ce7690ddbe6325ec430c61e7] | committer: Josh de Kock
lavf/allformats: remove left-over index decrement
Signed-off-by: Josh de Kock <josh at itanimul.li>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db85d657faabf8e5ce7690ddbe6325ec430c61e7
---
libavformat/allformats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 7ade03fc5d..d8d733735a 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -494,7 +494,7 @@ const AVOutputFormat *av_muxer_iterate(void **opaque)
uintptr_t i = (uintptr_t)*opaque;
const AVOutputFormat *f = NULL;
- if (i < size - 1) {
+ if (i < size) {
f = muxer_list[i];
} else if (indev_list) {
f = outdev_list[i - size];
More information about the ffmpeg-cvslog
mailing list