Browse Source

ffmpeg: fix memleak of encoder options AVDictionary on failure

Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n3.2
James Almer 9 years ago
parent
commit
3ac76d7618
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ffmpeg.c

+ 1
- 0
ffmpeg.c View File

@@ -513,6 +513,7 @@ static void ffmpeg_cleanup(int ret)

av_frame_free(&ost->filtered_frame);
av_frame_free(&ost->last_frame);
av_dict_free(&ost->encoder_opts);

av_parser_close(ost->parser);



Loading…
Cancel
Save