On 20/10/14 15:11, Vittorio Giovara wrote:
> CC: [email protected]
> Bug-Id: CID 1197050
> ---
> Addressed Martin's comment.
> Vittorio
>  libavformat/mov.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 0e29bf3..efc9314 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -3192,7 +3192,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;
>              }

Fine for me.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to