summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-23 23:43:20 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-23 23:43:20 +0000
commit5972945197d44e8bde6a986b9cba2e8196cfbc9c (patch)
tree94ba719e6f5efb53fc18d7eb38ccb96d25e7b194 /libavformat/mov.c
parentc30a4489b444020ef951c1f0583afd8679c07c78 (diff)
convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index c068160ac4..1edae19703 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1478,7 +1478,7 @@ static int mov_read_tkhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
((int64_t) display_matrix[2][i] << 16);
//sample aspect ratio is new width/height divided by old width/height
- st->codec->sample_aspect_ratio = av_d2q(
+ st->sample_aspect_ratio = av_d2q(
((double) disp_transform[0] * height) /
((double) disp_transform[1] * width), INT_MAX);
}