1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavc/libvpxenc: drop a useless condition

A non-NULL packet is always passed to frame_data_apply().
This commit is contained in:
Anton Khirnov 2023-02-28 12:20:39 +01:00
parent 5bda4ec6c3
commit 62a241e505

View File

@ -401,7 +401,7 @@ static int frame_data_apply(AVCodecContext *avctx, AVFifo *fifo, AVPacket *pkt)
{
FrameData fd;
uint8_t *data;
if (!pkt || av_fifo_peek(fifo, &fd, 1, 0) < 0)
if (av_fifo_peek(fifo, &fd, 1, 0) < 0)
return 0;
if (fd.pts != pkt->pts)
return 0;