Skip to content

Commit

Permalink
mov: Remove old b-frame/video delay heuristic
Browse files Browse the repository at this point in the history
This was added before edts support existed, and is no longer
valid.

Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten authored and richardpl committed Aug 25, 2016
1 parent 04f8d31 commit 425be3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libavformat/mov.c
Original file line number Diff line number Diff line change
Expand Up @@ -2801,9 +2801,6 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
empty_duration = av_rescale(empty_duration, sc->time_scale, mov->time_scale);
sc->time_offset = start_time - empty_duration;
current_dts = -sc->time_offset;
if (sc->ctts_count>0 && sc->stts_count>0 &&
sc->ctts_data[0].duration / FFMAX(sc->stts_data[0].duration, 1) > 16)
st->codecpar->video_delay = 1;
}

if (!unsupported && st->codecpar->codec_id == AV_CODEC_ID_AAC && start_time > 0)
Expand Down

0 comments on commit 425be3c

Please sign in to comment.