summaryrefslogtreecommitdiff
path: root/libavcodec/vp6.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-10-22 23:19:42 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-10-22 23:19:42 +0000
commit9e2424ce60b5a5e39478593106f7199e72b71f2d (patch)
treeeecbef69118a8a89848c90249c4f43d2efbce4c8 /libavcodec/vp6.c
parent24d3e5a2f2ad2779376753772b321a7390dacb20 (diff)
use the adjustment value present in FLV to crop VP6 video
Originally committed as revision 6770 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r--libavcodec/vp6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
index de6b61dc44..6d5d46b0f0 100644
--- a/libavcodec/vp6.c
+++ b/libavcodec/vp6.c
@@ -64,6 +64,10 @@ static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size,
if (16*cols != s->avctx->coded_width ||
16*rows != s->avctx->coded_height) {
avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
+ if (s->avctx->extradata_size == 1) {
+ s->avctx->width -= s->avctx->extradata[0] >> 4;
+ s->avctx->height -= s->avctx->extradata[0] & 0x0F;
+ }
res = 2;
}