Commit 2fd0e8e6 authored by Fabrice Bellard's avatar Fabrice Bellard

supressed incorrect pts init (when the pts is not set, ffmpeg.c presumes the...

supressed incorrect pts init (when the pts is not set, ffmpeg.c presumes the nominal frame rate is used

Originally committed as revision 1252 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 01e96fd1
......@@ -31,7 +31,6 @@ typedef struct {
INT64 movi_end;
offset_t movi_list;
AVIIndex *first, *last;
int framenum;
} AVIContext;
#ifdef DEBUG
......@@ -69,7 +68,6 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
stream_index = -1;
codec_type = -1;
frame_period = 0;
avi->framenum = 0;
for(;;) {
if (url_feof(pb))
goto fail;
......@@ -213,7 +211,6 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
size = get_le32(pb);
av_new_packet(pkt, size);
pkt->stream_index = n;
pkt->pts = avi->framenum++;
get_buffer(pb, pkt->data, pkt->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