Signed-off-by: James Almer <jamr...@gmail.com>
---
 libavcodec/h264_sei.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index 42ba94114c..96ae50a24a 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -195,8 +195,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);
@@ -217,11 +221,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;
     }
 
-- 
2.29.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to