Mercurial > libavcodec.hg
comparison vp6.c @ 4062:683d458a251f libavcodec
use the adjustment value present in FLV to crop VP6 video
author | aurel |
---|---|
date | Sun, 22 Oct 2006 23:19:42 +0000 |
parents | 34fdffe98bd0 |
children | 7f991a9cd252 |
comparison
equal
deleted
inserted
replaced
4061:e5d148036c87 | 4062:683d458a251f |
---|---|
62 /* buf[5] is number of displayed macroblock cols */ | 62 /* buf[5] is number of displayed macroblock cols */ |
63 | 63 |
64 if (16*cols != s->avctx->coded_width || | 64 if (16*cols != s->avctx->coded_width || |
65 16*rows != s->avctx->coded_height) { | 65 16*rows != s->avctx->coded_height) { |
66 avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); | 66 avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); |
67 if (s->avctx->extradata_size == 1) { | |
68 s->avctx->width -= s->avctx->extradata[0] >> 4; | |
69 s->avctx->height -= s->avctx->extradata[0] & 0x0F; | |
70 } | |
67 res = 2; | 71 res = 2; |
68 } | 72 } |
69 | 73 |
70 vp56_init_range_decoder(c, buf+6, buf_size-6); | 74 vp56_init_range_decoder(c, buf+6, buf_size-6); |
71 vp56_rac_gets(c, 2); | 75 vp56_rac_gets(c, 2); |