Mercurial > libavformat.hg
changeset 526:c5743d66c5ca libavformat
* fix for a DV regression introduced with the last round of avi_read_packet
fixes.
author | romansh |
---|---|
date | Sun, 19 Sep 2004 19:24:56 +0000 |
parents | 966b56685500 |
children | 1559f6441395 |
files | avidec.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Sun Sep 19 02:57:56 2004 +0000 +++ b/avidec.c Sun Sep 19 19:24:56 2004 +0000 @@ -179,14 +179,19 @@ handler != MKTAG('d', 'v', 's', 'l')) goto fail; + ast = s->streams[0]->priv_data; av_freep(&s->streams[0]->codec.extradata); av_freep(&s->streams[0]); s->nb_streams = 0; avi->dv_demux = dv_init_demux(s); if (!avi->dv_demux) goto fail; + s->streams[0]->priv_data = ast; + url_fskip(pb, 3 * 4); + ast->scale = get_le32(pb); + ast->rate = get_le32(pb); stream_index = s->nb_streams - 1; - url_fskip(pb, size - 8); + url_fskip(pb, size - 7*4); break; case MKTAG('v', 'i', 'd', 's'): codec_type = CODEC_TYPE_VIDEO;