From: Jun Zhao <[email protected]>
Before this change, the command:
ffmpeg -y -i bear-av1.mp4 -c:v copy bear-av1.ivf -loglevel 99
always dump the log message like:
AVBSFContext @ 0x55ff99e78e00] Frame 4: size 320x240 upscaled 320 render
320x240 subsample 2x2 bitdepth 8 tiles 1x1.
Last message repeated 1 times
it's hard to distinguish writing or reading.
Signed-off-by: Jun Zhao <[email protected]>
---
libavcodec/cbs_av1_syntax_template.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/libavcodec/cbs_av1_syntax_template.c
b/libavcodec/cbs_av1_syntax_template.c
index 523f935..9947441 100644
--- a/libavcodec/cbs_av1_syntax_template.c
+++ b/libavcodec/cbs_av1_syntax_template.c
@@ -1552,9 +1552,15 @@ static int
FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
}
}
- av_log(ctx->log_ctx, AV_LOG_DEBUG, "Frame %d: size %dx%d "
+ av_log(ctx->log_ctx, AV_LOG_DEBUG, "%s Frame %d: size %dx%d "
"upscaled %d render %dx%d subsample %dx%d "
- "bitdepth %d tiles %dx%d.\n", current->order_hint,
+ "bitdepth %d tiles %dx%d.\n",
+#ifdef READ
+ "Read",
+#else
+ "Write",
+#endif
+ current->order_hint,
priv->frame_width, priv->frame_height, priv->upscaled_width,
priv->render_width, priv->render_height,
seq->color_config.subsampling_x + 1,
--
1.7.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".