[FFmpeg-cvslog] avformat/sccdec: Remove redundant check

Andreas Rheinhardt git at videolan.org
Sat Oct 2 18:45:09 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct  1 15:11:54 2021 +0200| [e1d2a208a9be655062b57a19337447631f55e203] | committer: Andreas Rheinhardt

avformat/sccdec: Remove redundant check

The av_sscanf() will filter lines like "Scenarist_SCC V1.0" out.

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavformat/sccdec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 61b6acf637..6abe252b76 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -88,8 +88,6 @@ static int scc_read_header(AVFormatContext *s)
                 break;
             continue;
         }
-                if (!strncmp(line, "Scenarist_SCC V1.0", 18))
-                    continue;
         if (av_sscanf(line, "%d:%d:%d%*[:;]%d", &hh, &mm, &ss, &fs) != 4)
             continue;
 



More information about the ffmpeg-cvslog mailing list