             for each (var tag : FLVTag in tags) {
                 tag.pts = PTS.normalize(pts_start_computed, tag.pts);
                 tag.dts = PTS.normalize(pts_start_computed, tag.dts);
+                dts_min = Math.min(dts_min, tag.dts);
                 switch( tag.type ) {
                     case FLVTag.AAC_RAW:
                     case FLVTag.AAC_HEADER:

                        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:

            tags = new Vector.<FLVTag>();
            tags_audio_found = tags_video_found = false;
            metadata_tag_injected = false;
            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;
        }

