diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-02-28 12:20:39 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-03-10 13:00:53 +0100 |
commit | 62a241e505abfa96b4329875ecc76aaa1d57519e (patch) | |
tree | ae32eaf7d90aa11f66b85562fbaf23819f0b0174 | |
parent | 5bda4ec6c3cb6f286bb40dee4457c3c26e0f78cb (diff) |
lavc/libvpxenc: drop a useless condition
A non-NULL packet is always passed to frame_data_apply().
-rw-r--r-- | libavcodec/libvpxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 8000689726..79cd863093 100644 --- a/libavcodec/libvpxenc.c +++ b/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; |