Browse Source

avformat/mov: Fix width/height typo

Fixes CID1197050
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
af2e5061bb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mov.c

+ 1
- 1
libavformat/mov.c View File

@@ -3478,7 +3478,7 @@ static int mov_read_header(AVFormatContext *s)
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
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;
}


Loading…
Cancel
Save