[FFmpeg-cvslog] r25663 - trunk/libavcodec/truemotion1.c
reimar
subversion
Wed Nov 3 18:22:19 CET 2010
Author: reimar
Date: Wed Nov 3 18:22:19 2010
New Revision: 25663
Log:
Fix aspect for 24bpp TM1 samples.
Modified:
trunk/libavcodec/truemotion1.c
Modified: trunk/libavcodec/truemotion1.c
==============================================================================
--- trunk/libavcodec/truemotion1.c Wed Nov 3 18:01:30 2010 (r25662)
+++ trunk/libavcodec/truemotion1.c Wed Nov 3 18:22:19 2010 (r25663)
@@ -409,6 +409,7 @@ static int truemotion1_decode_header(Tru
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));
More information about the ffmpeg-cvslog
mailing list