From: Vittorio Giovara Date: Mon, 20 Oct 2014 13:11:25 +0000 (+0100) Subject: mov: fix assigment check X-Git-Tag: v11.4~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26ba78adacd8469fca97c8c833e2e6364b13b7c8;p=platform%2Fupstream%2Flibav.git mov: fix assigment check CC: libav-stable@libav.org Bug-Id: CID 1197050 --- 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; }