[FFmpeg-devel] [PATCH 5/7] Make ff_dprintf_buffer_ref() print audio related information if available.

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


---
 libavfilter/avfilter.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index ec1650f..3b94f14 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -206,6 +206,15 @@ void ff_dprintf_buffer_ref(void *ctx, AVFilterBufferRef *bufref, int end)
                 bufref->video->w, bufref->video->h,
                 bufref->video->interlaced, bufref->video->top_field_first);
     }
+    if (bufref->audio) {
+        dprintf(ctx, " cl:%"PRId64"d sn:%d s:%d sr:%d p:%d",
+                bufref->audio->channel_layout,
+                bufref->audio->samples_nb,
+                bufref->audio->size,
+                bufref->audio->sample_rate,
+                bufref->audio->planar);
+    }
+
     dprintf(ctx, "]%s", end ? "\n" : "");
 }
 
-- 
1.7.0.4




More information about the ffmpeg-devel mailing list