diff mbox series

[FFmpeg-devel,12/30] lavc/libx264: print an error on invalid opaque pointer

Message ID 20221127170351.11477-12-anton@khirnov.net
State Accepted
Commit 141303f3231d469c5f80bdb9c21ade27f4d9c618
Headers show
Series [FFmpeg-devel,01/30] lavc/libx264: factor out setting up the input frame | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

Anton Khirnov Nov. 27, 2022, 5:03 p.m. UTC
---
 libavcodec/libx264.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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