]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/amvenc.c
avfilter/avfilter: Remove compatibility code for old filter options
[ffmpeg] / libavformat / amvenc.c
index 5d13b618f4928db36ff55f76143915b64b3fd813..362b474fa6b1f98ee04441ee15ca06554bf95bde 100644 (file)
@@ -187,7 +187,6 @@ static av_cold int amv_init(AVFormatContext *s)
     if (!amv->apad)
         return AVERROR(ENOMEM);
     if ((ret = av_new_packet(amv->apad, amv->ablock_align)) < 0) {
-        av_packet_free(&amv->apad);
         return ret;
     }
 
@@ -197,7 +196,6 @@ static av_cold int amv_init(AVFormatContext *s)
 
     amv->vpad = av_packet_alloc();
     if (!amv->vpad) {
-        av_packet_free(&amv->apad);
         return AVERROR(ENOMEM);
     }
     amv->vpad->stream_index = AMV_STREAM_VIDEO;