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>
pull/231/head
James Almer 8 years ago
parent e3842e87f2
commit 3ac76d7618
  1. 1
      ffmpeg.c

@ -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