1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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
This commit is contained in:
Fabrice Bellard
2002-11-20 10:53:35 +00:00
parent 01e96fd1cd
commit 2fd0e8e630

View File

@@ -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)
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)
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);