summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-11-03 17:22:19 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-11-03 17:22:19 +0000
commite75f418cf20c277e083e337c8b9b50da27fe3fdc (patch)
treeb15d5e5143151173078d7975918ba87f58800a98 /libavcodec/truemotion1.c
parenta940dc69121a60d5385cbeb2c8070e65c62d1b64 (diff)
downloadffmpeg-e75f418cf20c277e083e337c8b9b50da27fe3fdc.tar.gz
Fix aspect for 24bpp TM1 samples.
Originally committed as revision 25663 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r--libavcodec/truemotion1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index eed558c2b1..d6ea4c1a6c 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -409,6 +409,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s)
new_pix_fmt != s->avctx->pix_fmt) {
if (s->frame.data[0])
s->avctx->release_buffer(s->avctx, &s->frame);
+ s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 };
s->avctx->pix_fmt = new_pix_fmt;
avcodec_set_dimensions(s->avctx, s->w, s->h);
av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));