aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-05 22:49:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-05 22:49:17 +0200
commitaf2e5061bbcabf5eae780929fa25784b6127759e (patch)
treed576a59329def7c3e676969ddfde5d8fbe962e81
parent49579c96376539607aa6d3412721d0af48415f33 (diff)
downloadffmpeg-af2e5061bbcabf5eae780929fa25784b6127759e.tar.gz
avformat/mov: Fix width/height typo
Fixes CID1197050 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index c711be1609..ffb2573ed9 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
}