Mercurial > libavformat.hg
changeset 1411:822f6b8a9b5e libavformat
use the adjustment value present in FLV to crop VP6 video
author | aurel |
---|---|
date | Sun, 22 Oct 2006 23:19:42 +0000 |
parents | b22de1465a33 |
children | cefc8e8de267 |
files | flvdec.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: