# HG changeset patch # User aurel # Date 1161559182 0 # Node ID 683d458a251fbb3b0da2da593593be85a5e48b82 # Parent e5d148036c87d931b1199ddbe018709c546d60bd use the adjustment value present in FLV to crop VP6 video diff -r e5d148036c87 -r 683d458a251f vp6.c --- a/vp6.c Sun Oct 22 18:33:09 2006 +0000 +++ b/vp6.c Sun Oct 22 23:19:42 2006 +0000 @@ -64,6 +64,10 @@ 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; }