mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
avformat/concatdec: Use correct stream count on close
This commit is contained in:
@ -364,7 +364,7 @@ static int concat_read_close(AVFormatContext *avf)
|
|||||||
|
|
||||||
for (i = 0; i < cat->nb_files; i++) {
|
for (i = 0; i < cat->nb_files; i++) {
|
||||||
av_freep(&cat->files[i].url);
|
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)
|
if (cat->files[i].streams[j].avctx)
|
||||||
avcodec_free_context(&cat->files[i].streams[j].avctx);
|
avcodec_free_context(&cat->files[i].streams[j].avctx);
|
||||||
if (cat->files[i].streams[j].bsf)
|
if (cat->files[i].streams[j].bsf)
|
||||||
|
Reference in New Issue
Block a user