[FFmpeg-cvslog] avformat/sccdec: make splitting more robust

Paul B Mahol git at videolan.org
Thu Jun 18 22:35:48 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jun 17 10:24:05 2020 +0200| [b52ca2cec27bc5d60750680f01f86d22dc8c2cbb] | committer: Paul B Mahol

avformat/sccdec: make splitting more robust

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

 libavformat/sccdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 4d94743c81..645e52857b 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -140,7 +140,7 @@ static int scc_read_header(AVFormatContext *s)
             lline = NULL;
 
             if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&
-                (av_strncasecmp(saveptr, "942f", 4) || !av_strncasecmp(saveptr, "942c", 4))) {
+                (av_strncasecmp(saveptr, "942f", 4) && !av_strncasecmp(saveptr, "942c", 4))) {
 
                 out[i] = 0;
 



More information about the ffmpeg-cvslog mailing list