Skip to content

Commit 11e7c61

Browse files
committed
vdec/lavc: print frame flags in debug
Frame type (I/P/B) is already printed in debug so add also frame flags which may be useful (eg. for the recent x265 intra-refresh decode fix 6d2ab24 - flag indicates corrupted frame all the time, which may or may not be an incorrect behavior from hevc decoder; but doesn't matter for us, anyways). Also use MSG(), which also has a advantage that if log_level not met, it is not evaluated.
1 parent e3c5f3f commit 11e7c61

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/video_decompress/libavcodec.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,11 @@ static decompress_status libavcodec_decompress(void *state, unsigned char *dst,
11221122
s->rgb_shift, &s->sws);
11231123
}
11241124
time_ns_t t2 = get_time_in_ns();
1125-
log_msg(LOG_LEVEL_DEBUG, MOD_NAME "Decompressing %c frame took %f ms, pixfmt change %f ms.\n", av_get_picture_type_char(s->frame->pict_type),
1126-
NS_TO_MS((double) (t1 - t0)), NS_TO_MS((double) (t2 - t1)));
1125+
MSG(DEBUG,
1126+
"Decompressing %c frame (flags: %d) took %f ms, "
1127+
"pixfmt change %f ms.\n",
1128+
av_get_picture_type_char(s->frame->pict_type), s->frame->flags,
1129+
NS_TO_MS((double) (t1 - t0)), NS_TO_MS((double) (t2 - t1)));
11271130
check_duration(s, (t2 - t0) / NS_IN_SEC_DBL, (t2 - t1) / NS_IN_SEC_DBL);
11281131

11291132
if (s->out_codec == VIDEO_CODEC_NONE) {

0 commit comments

Comments
 (0)