diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-22 23:19:42 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-22 23:19:42 +0000 |
commit | 9e2424ce60b5a5e39478593106f7199e72b71f2d (patch) | |
tree | eecbef69118a8a89848c90249c4f43d2efbce4c8 /libavformat | |
parent | 24d3e5a2f2ad2779376753772b321a7390dacb20 (diff) | |
download | ffmpeg-9e2424ce60b5a5e39478593106f7199e72b71f2d.tar.gz |
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 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index f9eefb197d..87984b576d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -193,7 +193,12 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) 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: |