mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix aspect for 24bpp TM1 samples.
Originally committed as revision 25663 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a940dc6912
commit
e75f418cf2
@ -409,6 +409,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s)
|
|||||||
new_pix_fmt != s->avctx->pix_fmt) {
|
new_pix_fmt != s->avctx->pix_fmt) {
|
||||||
if (s->frame.data[0])
|
if (s->frame.data[0])
|
||||||
s->avctx->release_buffer(s->avctx, &s->frame);
|
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;
|
s->avctx->pix_fmt = new_pix_fmt;
|
||||||
avcodec_set_dimensions(s->avctx, s->w, s->h);
|
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));
|
av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));
|
||||||
|
Loading…
Reference in New Issue
Block a user