[FFmpeg-devel] [PATCH 7/7] Make ff_dprintf_buffer_ref() print the information related to the referenced AVFilterBuffer.

Stefano Sabatini stefano.sabatini-lala
Thu Aug 19 18:38:28 CEST 2010


---
 libavfilter/avfilter.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index a43bfbe..6c5c1e0 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -206,9 +206,12 @@ static char *get_buffer_ref_perms_string(char *buf, size_t buf_size, int perms)
 
 void ff_dprintf_buffer_ref(void *ctx, AVFilterBufferRef *bufref, int end)
 {
+    av_unused char buf[16];
+
     dprintf(ctx,
-            "bufref[%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
-            bufref,
+            "bufref[%p buf:%p refcount:%d perms:%s data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
+            bufref, bufref->buf, bufref->buf->refcount,
+            get_buffer_ref_perms_string(buf, sizeof(buf), bufref->perms),
             bufref->data[0],
             bufref->linesize[0], bufref->linesize[1], bufref->linesize[2], bufref->linesize[3],
             bufref->pts, bufref->pos);
-- 
1.7.0.4




More information about the ffmpeg-devel mailing list