             tags = new Vector.<FLVTag>();
             tags_audio_found = tags_video_found = false;
             metadata_tag_injected = false;
-            pts_min_audio = pts_min_video = dts_min_audio = dts_min_video = tags_pts_min_audio = tags_pts_min_video = Number.POSITIVE_INFINITY;
+            pts_min_audio = pts_min_video = dts_min = tags_pts_min_audio = tags_pts_min_video = Number.POSITIVE_INFINITY;
             pts_max_audio = pts_max_video = tags_pts_max_audio = tags_pts_max_video = Number.NEGATIVE_INFINITY;
         }
 

                        tags_pts_max_audio = Math.max(tags_pts_max_audio, tag.pts);
                        pts_min_audio = Math.min(pts_min_audio, tag.pts);
                        pts_max_audio = Math.max(pts_max_audio, tag.pts);
                        dts_min_audio = Math.min(dts_min_audio, tag.dts);
                        break;
                    case FLVTag.AVC_HEADER:
                    case FLVTag.AVC_NALU:

                return pts_max_audio;
            } else {
                return pts_max_video;
            }
        }

