You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/libvpxenc: drop a useless condition
A non-NULL packet is always passed to frame_data_apply().
This commit is contained in:
@@ -401,7 +401,7 @@ static int frame_data_apply(AVCodecContext *avctx, AVFifo *fifo, AVPacket *pkt)
|
|||||||
{
|
{
|
||||||
FrameData fd;
|
FrameData fd;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
if (!pkt || av_fifo_peek(fifo, &fd, 1, 0) < 0)
|
if (av_fifo_peek(fifo, &fd, 1, 0) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (fd.pts != pkt->pts)
|
if (fd.pts != pkt->pts)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user