diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-04-11 20:27:18 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-04-11 22:06:10 +0300 |
commit | 901b0f1a219e96d008c801dbd99bb21aae0aea4e (patch) | |
tree | b40a8c96550ccdfd5de26449c4c58f5bab8f50bd | |
parent | 03d8fee912a4a0a5cab7995d5c604e89bc4455b8 (diff) |
avformat/concatdec: Use correct stream count on close
-rw-r--r-- | libavformat/concatdec.c | 2 |
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) |