Browse Source

lavc: free the padded last frame during audio encoding properly

tags/n2.0
Anton Khirnov 12 years ago
parent
commit
720a1de52f
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      libavcodec/utils.c

+ 1
- 6
libavcodec/utils.c View File

@@ -1245,12 +1245,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
avpkt->flags |= AV_PKT_FLAG_KEY;

end:
if (padded_frame) {
av_freep(&padded_frame->data[0]);
if (padded_frame->extended_data != padded_frame->data)
av_freep(&padded_frame->extended_data);
av_freep(&padded_frame);
}
av_frame_free(&padded_frame);

return ret;
}


Loading…
Cancel
Save