aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-04-11 19:27:18 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-04-11 21:06:10 +0200
commit901b0f1a219e96d008c801dbd99bb21aae0aea4e (patch)
treeb40a8c96550ccdfd5de26449c4c58f5bab8f50bd /libavformat
parent03d8fee912a4a0a5cab7995d5c604e89bc4455b8 (diff)
downloadffmpeg-901b0f1a219e96d008c801dbd99bb21aae0aea4e.tar.gz
avformat/concatdec: Use correct stream count on close
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/concatdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 50d6689413..e3418e18e8 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)