]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpeg.c
set pts and dts when only pts is present, according to specs
[ffmpeg] / libavformat / mpeg.c
index 289be8caf6c612b018c2fa594c6d0db311773b3c..0c43a5ec5dc55003b8d0becbb4d387794904bc15 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * MPEG1/2 demuxer
- * Copyright (c) 2000, 2001, 2002 Fabrice Bellard.
+ * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
  *
  * This file is part of FFmpeg.
  *
@@ -409,7 +409,9 @@ static int mpegps_read_packet(AVFormatContext *s,
 {
     MpegDemuxContext *m = s->priv_data;
     AVStream *st;
-    int len, startcode, i, type, codec_id = 0, es_type;
+    int len, startcode, i, es_type;
+    enum CodecID codec_id = CODEC_ID_NONE;
+    enum CodecType type;
     int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work
 
  redo: