mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
isomp4: replace variable only used once
Replace has_shift variable with value since it is only use once.
This commit is contained in:
parent
e4b2360e6e
commit
3a38682cf0
1 changed files with 2 additions and 3 deletions
|
@ -2462,10 +2462,8 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
|
|||
guint32 lateness = 0;
|
||||
guint32 duration = qtpad->trak->tkhd.duration;
|
||||
gboolean has_gap;
|
||||
gboolean has_shift;
|
||||
|
||||
has_gap = (qtpad->first_ts > (qtmux->first_ts + qtpad->dts_adjustment));
|
||||
has_shift = (qtpad->dts_adjustment > 0);
|
||||
|
||||
if (has_gap) {
|
||||
GstClockTime diff;
|
||||
|
@ -2481,7 +2479,8 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
|
|||
(guint32) (1 * 65536.0));
|
||||
}
|
||||
|
||||
if (has_gap || has_shift) {
|
||||
/* has shift */
|
||||
if (has_gap || (qtpad->dts_adjustment > 0)) {
|
||||
GstClockTime ctts;
|
||||
guint32 media_start;
|
||||
|
||||
|
|
Loading…
Reference in a new issue