# HG changeset patch # User aurel # Date 1161559182 0 # Node ID 822f6b8a9b5ed6867c43e2f9c43efae127243e8d # Parent b22de1465a33ff9d94f91a6e13bbb6539249bc81 use the adjustment value present in FLV to crop VP6 video diff -r b22de1465a33 -r 822f6b8a9b5e flvdec.c --- a/flvdec.c Sun Oct 22 16:17:02 2006 +0000 +++ b/flvdec.c Sun Oct 22 23:19:42 2006 +0000 @@ -193,7 +193,12 @@ case 3: st->codec->codec_id = CODEC_ID_FLASHSV; break; case 4: st->codec->codec_id = CODEC_ID_VP6F; - get_byte(&s->pb); /* width and height adjustment */ + if (st->codec->extradata_size != 1) { + st->codec->extradata_size = 1; + st->codec->extradata = av_malloc(1); + } + /* width and height adjustment */ + st->codec->extradata[0] = get_byte(&s->pb); size--; break; default: