[FFmpeg-cvslog] lavc/libx264: print an error on invalid opaque pointer

Anton Khirnov git at videolan.org
Wed Jan 4 13:13:30 EET 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Nov 27 11:18:06 2022 +0100| [141303f3231d469c5f80bdb9c21ade27f4d9c618] | committer: Anton Khirnov

lavc/libx264: print an error on invalid opaque pointer

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

 libavcodec/libx264.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index b680e2098e..e8ca3d896b 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -596,6 +596,8 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
         wallclock = out_opaque->wallclock;
     } else {
         // Unexpected opaque pointer on picture output
+        av_log(ctx, AV_LOG_ERROR, "Unexpected opaque pointer; "
+               "this is a bug, please report it.\n");
         ctx->reordered_opaque = 0;
     }
 



More information about the ffmpeg-cvslog mailing list