[FFmpeg-cvslog] mov: fix assigment check

Vittorio Giovara git at videolan.org
Sun Jan 18 01:39:03 CET 2015


ffmpeg | branch: release/2.4 | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Oct 20 14:11:25 2014 +0100| [26ba78adacd8469fca97c8c833e2e6364b13b7c8] | committer: Vittorio Giovara

mov: fix assigment check

CC: libav-stable at libav.org
Bug-Id: CID 1197050

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9077b7d..d14dc7c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3092,7 +3092,7 @@ static int mov_read_header(AVFormatContext *s)
         MOVStreamContext *sc = st->priv_data;
 
         if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
-            if (st->codec->width <= 0 && st->codec->width <= 0) {
+            if (st->codec->width <= 0 || st->codec->height <= 0) {
                 st->codec->width  = sc->width;
                 st->codec->height = sc->height;
             }



More information about the ffmpeg-cvslog mailing list