aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-02-18 19:03:39 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-02-19 02:07:12 +0100
commit3f28caf72083231131ee35ebc81be2c4dfe95e11 (patch)
treee13f80a1f115e664fc5f9d05edb8b84cb3b032ef
parent533688786799b22d0711eedcfe8f84deea014f30 (diff)
downloadffmpeg-3f28caf72083231131ee35ebc81be2c4dfe95e11.tar.gz
avcodec/mpeg12dec: Provide debug level log on skiped P/B frames
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/mpeg12dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 63979079c8..f3cf6eb0bf 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2660,6 +2660,8 @@ static int decode_chunks(AVCodecContext *avctx, AVFrame *picture,
if (s2->pict_type == AV_PICTURE_TYPE_B) {
if (!s2->closed_gop) {
skip_frame = 1;
+ av_log(s2->avctx, AV_LOG_DEBUG,
+ "Skipping B slice due to open GOP\n");
break;
}
}
@@ -2671,6 +2673,8 @@ static int decode_chunks(AVCodecContext *avctx, AVFrame *picture,
* we have an invalid header. */
if (s2->pict_type == AV_PICTURE_TYPE_P && !s->sync) {
skip_frame = 1;
+ av_log(s2->avctx, AV_LOG_DEBUG,
+ "Skipping P slice due to !sync\n");
break;
}
}