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]>
Signed-off-by: Luca Barbato <[email protected]>
  • Loading branch information
dwbuiten authored and lu-zero committed Aug 29, 2016
1 parent eb96505 commit 8db804e
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 @@ -2306,9 +2306,6 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
if (sc->time_offset < 0)
sc->time_offset = av_rescale(sc->time_offset, sc->time_scale, mov->time_scale);
current_dts = -sc->time_offset;
if (sc->ctts_data && sc->stts_data && sc->stts_data[0].duration &&
sc->ctts_data[0].duration / sc->stts_data[0].duration > 16)
st->internal->avctx->has_b_frames = 1;
}

/* only use old uncompressed audio chunk demuxing when stts specifies it */
Expand Down

0 comments on commit 8db804e

Please sign in to comment.