aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-11-20 10:53:35 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-11-20 10:53:35 +0000
commit2fd0e8e6305358ab59e45d18f05390d4e0e70b5b (patch)
treeb32aede0d9845e250c8d6adf107f54121737e5f1
parent01e96fd1cd88ab955aef7000812625e60447e157 (diff)
downloadffmpeg-2fd0e8e6305358ab59e45d18f05390d4e0e70b5b.tar.gz
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
-rw-r--r--libav/avidec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libav/avidec.c b/libav/avidec.c
index eb3774eee4..9646408cd1 100644
--- a/libav/avidec.c
+++ b/libav/avidec.c
@@ -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);