[SCM] libav/experimental: Fix aspect for 24bpp TM1 samples.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:18:35 UTC 2013


The following commit has been merged in the experimental branch:
commit e75f418cf20c277e083e337c8b9b50da27fe3fdc
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Wed Nov 3 17:22:19 2010 +0000

    Fix aspect for 24bpp TM1 samples.
    
    Originally committed as revision 25663 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index eed558c..d6ea4c1 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));

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list