]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avisynth.c
Merge commit 'b605b123ef1d3bac0e7c221d8d7fa74cd8c7253c'
[ffmpeg] / libavformat / avisynth.c
index 9b65fba4b4cd89e0b5012a350699421b50eb986d..2f438d90270635ebb6473371eddc7d4c185914dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Avi/AvxSynth support
+ * AviSynth/AvxSynth support
  * Copyright (c) 2012 AvxSynth Team.
  *
  * This file is part of FFmpeg
@@ -459,7 +459,6 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
                   (int64_t)avs->vi->height) * bits) / 8;
     if (!pkt->size)
         return AVERROR_UNKNOWN;
-    av_new_packet(pkt, (int)pkt->size);
     if (av_new_packet(pkt, (int)pkt->size) < 0) {
         av_free(pkt);
         return AVERROR(ENOMEM);