lavc/libvpxenc: drop a useless condition
A non-NULL packet is always passed to frame_data_apply().
This commit is contained in:
parent
5bda4ec6c3
commit
62a241e505
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue