[FFmpeg-cvslog] avcodec/hevc_sei: remove the duplicate check

Limin Wang git at videolan.org
Wed Oct 20 17:51:19 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Wed Oct 13 19:06:40 2021 +0800| [0feb7c86019794ac31dec2869dae839f0ad4f0ef] | committer: Limin Wang

avcodec/hevc_sei: remove the duplicate check

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0feb7c86019794ac31dec2869dae839f0ad4f0ef
---

 libavcodec/hevc_sei.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
index 29d0346287..7fd822652e 100644
--- a/libavcodec/hevc_sei.c
+++ b/libavcodec/hevc_sei.c
@@ -181,9 +181,6 @@ static int decode_registered_user_data_closed_caption(HEVCSEIA53Caption *s, GetB
 {
     int ret;
 
-    if (size < 3)
-       return AVERROR_INVALIDDATA;
-
     ret = ff_parse_a53_cc(&s->buf_ref, gb->buffer + get_bits_count(gb) / 8, size);
 
     if (ret < 0)



More information about the ffmpeg-cvslog mailing list