You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
asfdec: Account for different Format Data sizes
Some muxers may use the BMP_HEADER Format Data size instead of the ASF-specific one. Bug-Id: 1020 CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
871b4f3654
commit
0539d84d98
@@ -180,10 +180,12 @@ enum AVCodecID ff_wav_codec_get_id(unsigned int tag, int bps)
|
||||
return id;
|
||||
}
|
||||
|
||||
int ff_get_bmp_header(AVIOContext *pb, AVStream *st)
|
||||
int ff_get_bmp_header(AVIOContext *pb, AVStream *st, uint32_t *size)
|
||||
{
|
||||
int tag1;
|
||||
avio_rl32(pb); /* size */
|
||||
uint32_t size_ = avio_rl32(pb);
|
||||
if (size)
|
||||
*size = size_;
|
||||
st->codecpar->width = avio_rl32(pb);
|
||||
st->codecpar->height = (int32_t)avio_rl32(pb);
|
||||
avio_rl16(pb); /* planes */
|
||||
|
||||
Reference in New Issue
Block a user