diff options
author | jstebbins <[email protected]> | 2014-08-27 21:41:03 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-08-27 21:41:03 +0000 |
commit | 44f3a49ff33f3037976ae1616bec95cf297aea53 (patch) | |
tree | a42ba841b53034617a406e8c88f83e32ebc06af5 /libhb | |
parent | 5c11601e96ad3c7de0b989d5a34aaafff7530e48 (diff) |
libhb: fix small error in "empty" mp4 subtitle duration
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6376 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/muxavformat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index 48bb2b3f6..72e23f496 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -1070,8 +1070,6 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu pkt.flags |= AV_PKT_FLAG_KEY; } - track->duration += pkt.duration; - switch (track->type) { case MUX_TYPE_VIDEO: @@ -1138,7 +1136,6 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu *job->die = 1; return -1; } - track->duration = pts; } if (track->st->codec->codec_id == AV_CODEC_ID_MOV_TEXT) { @@ -1209,6 +1206,7 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu default: break; } + track->duration = pts + pkt.duration; pkt.stream_index = track->st->index; int ret = av_interleaved_write_frame(m->oc, &pkt); |