Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-02 01:12:57 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-02 01:12:57 +0400
commitb2c89453dcc11067de6f951f6283c56925e48491 (patch)
treedbf2eaf04c4eaab27e87904d217d1db1d19c159a /libavformat/avisynth.c
parent003f405caf9ff482e0390c88bfc6510e3fc7f9f1 (diff)
avformat/avisynth: remove duplicate av_new_packet() call
Found-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 9b65fba4b4..aac00fc9ef 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -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);