Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created April 11, 2016 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BtbN/3c5f8c5cb437530706b6c40cb050bd17 to your computer and use it in GitHub Desktop.
Save BtbN/3c5f8c5cb437530706b6c40cb050bd17 to your computer and use it in GitHub Desktop.
stdin
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment