Commit 5fa920e7 authored by bellard's avatar 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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 74e94c98
...@@ -31,7 +31,6 @@ typedef struct { ...@@ -31,7 +31,6 @@ typedef struct {
INT64 movi_end; INT64 movi_end;
offset_t movi_list; offset_t movi_list;
AVIIndex *first, *last; AVIIndex *first, *last;
int framenum;
} AVIContext; } AVIContext;
#ifdef DEBUG #ifdef DEBUG
...@@ -69,7 +68,6 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -69,7 +68,6 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
stream_index = -1; stream_index = -1;
codec_type = -1; codec_type = -1;
frame_period = 0; frame_period = 0;
avi->framenum = 0;
for(;;) { for(;;) {
if (url_feof(pb)) if (url_feof(pb))
goto fail; goto fail;
...@@ -213,7 +211,6 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -213,7 +211,6 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
size = get_le32(pb); size = get_le32(pb);
av_new_packet(pkt, size); av_new_packet(pkt, size);
pkt->stream_index = n; pkt->stream_index = n;
pkt->pts = avi->framenum++;
get_buffer(pb, pkt->data, pkt->size); 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