mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-25 00:10:00 +01:00
normalize calls to ff_alloc_packet2
- check ret < 0 - remove excessive error log Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
c257fe1fde
commit
bcaf64b605
@@ -348,7 +348,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
||||
|
||||
av_fifo_generic_read(s->pkt_fifo, &op, sizeof(ogg_packet), NULL);
|
||||
|
||||
if ((ret = ff_alloc_packet2(avctx, avpkt, op.bytes)))
|
||||
if ((ret = ff_alloc_packet2(avctx, avpkt, op.bytes)) < 0)
|
||||
return ret;
|
||||
av_fifo_generic_read(s->pkt_fifo, avpkt->data, op.bytes, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user