[FFmpeg-cvslog] avcodec/av1dec: Move message of OBU info back to the beginning

Fei Wang git at videolan.org
Thu Feb 29 07:44:44 EET 2024


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Thu Dec 28 09:24:02 2023 +0800| [3f7e50f53939cfd3153a21f7342c9e65364984dd] | committer: Haihao Xiang

avcodec/av1dec: Move message of OBU info back to the beginning

So that can show OBU info even it doesn't have decomposed content. And
add OBU content status into the message.

Signed-off-by: Fei Wang <fei.w.wang at intel.com>

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

 libavcodec/av1dec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 7debc4deda..d4bfa3c69c 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1200,11 +1200,12 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
         AV1RawOBU *obu = unit->content;
         const AV1RawOBUHeader *header;
 
+        av_log(avctx, AV_LOG_DEBUG, "OBU idx:%d, type:%d, content available:%d.\n", i, unit->type, !!obu);
+
         if (!obu)
             continue;
 
         header = &obu->header;
-        av_log(avctx, AV_LOG_DEBUG, "Obu idx:%d, obu type:%d.\n", i, unit->type);
 
         switch (unit->type) {
         case AV1_OBU_SEQUENCE_HEADER:



More information about the ffmpeg-cvslog mailing list