Commit 2c3cee34 authored by Roman Shaposhnik's avatar Roman Shaposhnik

* fix for a DV regression introduced with the last round of avi_read_packet

     fixes.

Originally committed as revision 3482 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1f018225
...@@ -179,14 +179,19 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -179,14 +179,19 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
handler != MKTAG('d', 'v', 's', 'l')) handler != MKTAG('d', 'v', 's', 'l'))
goto fail; goto fail;
ast = s->streams[0]->priv_data;
av_freep(&s->streams[0]->codec.extradata); av_freep(&s->streams[0]->codec.extradata);
av_freep(&s->streams[0]); av_freep(&s->streams[0]);
s->nb_streams = 0; s->nb_streams = 0;
avi->dv_demux = dv_init_demux(s); avi->dv_demux = dv_init_demux(s);
if (!avi->dv_demux) if (!avi->dv_demux)
goto fail; 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; stream_index = s->nb_streams - 1;
url_fskip(pb, size - 8); url_fskip(pb, size - 7*4);
break; break;
case MKTAG('v', 'i', 'd', 's'): case MKTAG('v', 'i', 'd', 's'):
codec_type = CODEC_TYPE_VIDEO; codec_type = CODEC_TYPE_VIDEO;
......
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