summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-03-04 12:40:43 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-03-04 12:40:43 +0100
commitbce086111a2875545f9e61bd53ccd0a76826c899 (patch)
treed4235320826078b188158ac29f67096cd32b8413 /modules
parent7c27675cb85790652320cf231055ffee830ee595 (diff)
avcodec: print NAL unit type as string
Diffstat (limited to 'modules')
-rw-r--r--modules/avcodec/decode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/avcodec/decode.c b/modules/avcodec/decode.c
index 63c704f..35260dc 100644
--- a/modules/avcodec/decode.c
+++ b/modules/avcodec/decode.c
@@ -302,10 +302,11 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
return err;
#if 0
- re_printf("avcodec: decode: %s %s type=%2d \n",
+ re_printf("avcodec: decode: %s %s type=%2d %s \n",
marker ? "[M]" : " ",
h264_is_keyframe(h264_hdr.type) ? "<KEY>" : " ",
- h264_hdr.type);
+ h264_hdr.type,
+ h264_nalunit_name(h264_hdr.type));
#endif
if (h264_hdr.f) {