Commit cf4a5e64 authored by michael's avatar michael

fixing demuxing of DV5700.asf


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4138 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c80c8430
...@@ -182,7 +182,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -182,7 +182,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
asf->packet_size = asf->hdr.max_pktsize; asf->packet_size = asf->hdr.max_pktsize;
asf->nb_packets = asf->hdr.packets_count; asf->nb_packets = asf->hdr.packets_count;
} else if (!memcmp(&g, &stream_header, sizeof(GUID))) { } else if (!memcmp(&g, &stream_header, sizeof(GUID))) {
int type, total_size, type_specific_size; int type, total_size, type_specific_size, sizeX;
unsigned int tag1; unsigned int tag1;
int64_t pos1, pos2; int64_t pos1, pos2;
...@@ -264,7 +264,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -264,7 +264,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32(pb); get_le32(pb);
get_byte(pb); get_byte(pb);
size = get_le16(pb); /* size */ size = get_le16(pb); /* size */
get_le32(pb); /* size */ sizeX= get_le32(pb); /* size */
st->codec.width = get_le32(pb); st->codec.width = get_le32(pb);
st->codec.height = get_le32(pb); st->codec.height = get_le32(pb);
/* not available for asf */ /* not available for asf */
...@@ -272,6 +272,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -272,6 +272,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec.bits_per_sample = get_le16(pb); /* depth */ st->codec.bits_per_sample = get_le16(pb); /* depth */
tag1 = get_le32(pb); tag1 = get_le32(pb);
url_fskip(pb, 20); url_fskip(pb, 20);
// av_log(NULL, AV_LOG_DEBUG, "size:%d tsize:%d sizeX:%d\n", size, total_size, sizeX);
size= sizeX;
if (size > 40) { if (size > 40) {
st->codec.extradata_size = size - 40; st->codec.extradata_size = size - 40;
st->codec.extradata = av_mallocz(st->codec.extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); st->codec.extradata = av_mallocz(st->codec.extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment