mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-22 06:16:38 +00:00
avcodec/mpeg12dec: Provide debug level log on skiped P/B frames
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5336887867
commit
3f28caf720
@ -2660,6 +2660,8 @@ static int decode_chunks(AVCodecContext *avctx, AVFrame *picture,
|
|||||||
if (s2->pict_type == AV_PICTURE_TYPE_B) {
|
if (s2->pict_type == AV_PICTURE_TYPE_B) {
|
||||||
if (!s2->closed_gop) {
|
if (!s2->closed_gop) {
|
||||||
skip_frame = 1;
|
skip_frame = 1;
|
||||||
|
av_log(s2->avctx, AV_LOG_DEBUG,
|
||||||
|
"Skipping B slice due to open GOP\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2671,6 +2673,8 @@ static int decode_chunks(AVCodecContext *avctx, AVFrame *picture,
|
|||||||
* we have an invalid header. */
|
* we have an invalid header. */
|
||||||
if (s2->pict_type == AV_PICTURE_TYPE_P && !s->sync) {
|
if (s2->pict_type == AV_PICTURE_TYPE_P && !s->sync) {
|
||||||
skip_frame = 1;
|
skip_frame = 1;
|
||||||
|
av_log(s2->avctx, AV_LOG_DEBUG,
|
||||||
|
"Skipping P slice due to !sync\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user