diff options
author | James Almer <jamrial@gmail.com> | 2020-12-08 16:29:39 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-12-18 12:34:17 -0300 |
commit | f322383a449e2fda541d1eabda362c563dc81f3d (patch) | |
tree | b753fe7031b3d65b561fa71351d42d8ce2aaf8f1 /libavcodec/h264_sei.c | |
parent | 65058cade1eb47435e3e6eceb802f498ef574ba1 (diff) |
avcodec/h264_sei: print a log message when a unsupported ITU-T T35 SEI messages is parsed
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/h264_sei.c')
-rw-r--r-- | libavcodec/h264_sei.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index dd185ef23b..793446be84 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -198,8 +198,12 @@ static int decode_registered_user_data(H264SEIContext *h, GetBitContext *gb, size--; } - if (country_code != 0xB5) // usa_country_code + if (country_code != 0xB5) { // usa_country_code + av_log(logctx, AV_LOG_VERBOSE, + "Unsupported User Data Registered ITU-T T35 SEI message (country_code = %d)\n", + country_code); return 0; + } /* itu_t_t35_payload_byte follows */ provider_code = get_bits(gb, 16); @@ -220,11 +224,17 @@ static int decode_registered_user_data(H264SEIContext *h, GetBitContext *gb, return decode_registered_user_data_closed_caption(&h->a53_caption, gb, logctx, size); default: + av_log(logctx, AV_LOG_VERBOSE, + "Unsupported User Data Registered ITU-T T35 SEI message (atsc user_identifier = 0x%04x)\n", + user_identifier); break; } break; } default: + av_log(logctx, AV_LOG_VERBOSE, + "Unsupported User Data Registered ITU-T T35 SEI message (provider_code = %d)\n", + provider_code); break; } |