Commit b2c89453 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avisynth: remove duplicate av_new_packet() call

Found-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 003f405c
......@@ -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);
......
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