lavc/libvpxenc: drop a useless condition

A non-NULL packet is always passed to frame_data_apply().
pull/389/head
Anton Khirnov 2 years ago
parent 5bda4ec6c3
commit 62a241e505
  1. 2
      libavcodec/libvpxenc.c

@ -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;

Loading…
Cancel
Save