avformat/avisynth: remove duplicate av_new_packet() call
Found-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
003f405caf
commit
b2c89453dc
@ -459,7 +459,6 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
|
|||||||
(int64_t)avs->vi->height) * bits) / 8;
|
(int64_t)avs->vi->height) * bits) / 8;
|
||||||
if (!pkt->size)
|
if (!pkt->size)
|
||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
av_new_packet(pkt, (int)pkt->size);
|
|
||||||
if (av_new_packet(pkt, (int)pkt->size) < 0) {
|
if (av_new_packet(pkt, (int)pkt->size) < 0) {
|
||||||
av_free(pkt);
|
av_free(pkt);
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user