[FFmpeg-cvslog] avformat/concatdec: Use correct stream count on close
Timo Rothenpieler
git at videolan.org
Mon Apr 11 22:25:49 CEST 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Mon Apr 11 19:27:18 2016 +0200| [901b0f1a219e96d008c801dbd99bb21aae0aea4e] | committer: Timo Rothenpieler
avformat/concatdec: Use correct stream count on close
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=901b0f1a219e96d008c801dbd99bb21aae0aea4e
---
libavformat/concatdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 50d6689..e3418e1 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -364,7 +364,7 @@ static int concat_read_close(AVFormatContext *avf)
for (i = 0; i < cat->nb_files; i++) {
av_freep(&cat->files[i].url);
- for (j = 0; j < cat->avf->nb_streams; j++) {
+ for (j = 0; j < cat->files[i].nb_streams; j++) {
if (cat->files[i].streams[j].avctx)
avcodec_free_context(&cat->files[i].streams[j].avctx);
if (cat->files[i].streams[j].bsf)
More information about the ffmpeg-cvslog
mailing list