summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-02 19:04:14 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-02 19:04:14 +0000
commitce8f4fb388e69f1f514066bfc203c0f24c8feb3f (patch)
tree56ce10cc5e10bbc5ce2fb5ba58f67d78d033b0ef /libavcodec/mpeg12.c
parent27ee9bcf369a4e5ef929095fae414e1d7a6fdab9 (diff)
print correct mpeg-2 broken_link value, and print closed_gop
Originally committed as revision 13630 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 223be58077..d42d8a1ec2 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2156,7 +2156,7 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
int drop_frame_flag;
int time_code_hours, time_code_minutes;
int time_code_seconds, time_code_pictures;
- int broken_link;
+ int closed_gop, broken_link;
init_get_bits(&s->gb, buf, buf_size*8);
@@ -2168,15 +2168,16 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
time_code_seconds = get_bits(&s->gb,6);
time_code_pictures = get_bits(&s->gb,6);
+ closed_gop = get_bits1(&s->gb);
/*broken_link indicate that after editing the
reference frames of the first B-Frames after GOP I-Frame
are missing (open gop)*/
broken_link = get_bits1(&s->gb);
if(s->avctx->debug & FF_DEBUG_PICT_INFO)
- av_log(s->avctx, AV_LOG_DEBUG, "GOP (%2d:%02d:%02d.[%02d]) broken_link=%d\n",
+ av_log(s->avctx, AV_LOG_DEBUG, "GOP (%2d:%02d:%02d.[%02d]) closed_gop=%d broken_link=%d\n",
time_code_hours, time_code_minutes, time_code_seconds,
- time_code_pictures, broken_link);
+ time_code_pictures, closed_gop, broken_link);
}
/**
* finds the end of the current frame in the bitstream.