Commit c9594fe0 authored by Justin Ruggles's avatar Justin Ruggles

avconv: free packet in write_frame() when discarding due to frame number limit

Fixes a memleak when using the -frames option with audio.
parent e056f8d3
......@@ -887,8 +887,10 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
* reordering, see do_video_out()
if (!(avctx->codec_type == AVMEDIA_TYPE_VIDEO && avctx->codec)) {
if (ost->frame_number >= ost->max_frames)
if (ost->frame_number >= ost->max_frames) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment