[SCM] libav/experimental: Print which slices are IDR not just the slice type.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:30:31 UTC 2013


The following commit has been merged in the experimental branch:
commit 49573a87c93988807d8610cf5ff57e35ca07e8d0
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Sep 25 12:04:25 2008 +0000

    Print which slices are IDR not just the slice type.
    
    Originally committed as revision 15411 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 4a6c86e..d675192 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4036,11 +4036,11 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
     h->emu_edge_height= (FRAME_MBAFF || FIELD_PICTURE) ? 0 : h->emu_edge_width;
 
     if(s->avctx->debug&FF_DEBUG_PICT_INFO){
-        av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s %s\n",
+        av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c%s%s pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s %s\n",
                h->slice_num,
                (s->picture_structure==PICT_FRAME ? "F" : s->picture_structure==PICT_TOP_FIELD ? "T" : "B"),
                first_mb_in_slice,
-               av_get_pict_type_char(h->slice_type),
+               av_get_pict_type_char(h->slice_type), h->slice_type_fixed ? " fix" : "", h->nal_unit_type == NAL_IDR_SLICE ? " IDR" : "",
                pps_id, h->frame_num,
                s->current_picture_ptr->field_poc[0], s->current_picture_ptr->field_poc[1],
                h->ref_count[0], h->ref_count[1],

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list