[FFmpeg-cvslog] lavc/libvpxenc: drop a useless condition

Anton Khirnov git at videolan.org
Fri Mar 10 14:10:34 EET 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Feb 28 12:20:39 2023 +0100| [62a241e505abfa96b4329875ecc76aaa1d57519e] | committer: Anton Khirnov

lavc/libvpxenc: drop a useless condition

A non-NULL packet is always passed to frame_data_apply().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62a241e505abfa96b4329875ecc76aaa1d57519e
---

 libavcodec/libvpxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list