Browse Source

fate/api-codec-param: fix codec context leak

tags/n3.0
Matthieu Bouron 10 years ago
parent
commit
bd0a9f603d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/api/api-codec-param-test.c

+ 6
- 0
tests/api/api-codec-param-test.c View File

@@ -129,6 +129,12 @@ static int find_video_stream_info(AVFormatContext *fmt_ctx, int decode)
end:
av_packet_unref(&pkt);

/* close all codecs opened in try_decode_video_frame */
for (i = 0; i < fmt_ctx->nb_streams; i++) {
AVStream *st = fmt_ctx->streams[i];
avcodec_close(st->codec);
}

return ret < 0;
}



Loading…
Cancel
Save