diff options
author | jstebbins <[email protected]> | 2010-02-06 16:30:31 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-02-06 16:30:31 +0000 |
commit | b0a6491c0e2cffd2d01d2f9a2b83f3981932ff98 (patch) | |
tree | 8b1ded06d21b362e19dca4018a2ffa61f3ac5aa7 /libhb/muxmkv.c | |
parent | 13b843cdca7bd875316d3bd8327d1c1575da8674 (diff) |
use DTS generated by x264 when computing duration and offset in muxmp4
also fix an issue where ffmpeg generated negative PTS for initial
frames of video.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3097 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxmkv.c')
-rw-r--r-- | libhb/muxmkv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c index f179cb755..d30e7c01d 100644 --- a/libhb/muxmkv.c +++ b/libhb/muxmkv.c @@ -399,6 +399,7 @@ static int MKVMux( hb_mux_object_t * m, hb_mux_data_t * mux_data, } mk_addFrameData(m->file, mux_data->track, op->packet, op->bytes); mk_setFrameFlags(m->file, mux_data->track, timecode, 1, 0); + hb_buffer_close( &buf ); return 0; } } @@ -424,6 +425,7 @@ static int MKVMux( hb_mux_object_t * m, hb_mux_data_t * mux_data, mk_setFrameFlags(m->file, mux_data->track, timecode, 1, duration); } mk_flushFrame(m->file, mux_data->track); + hb_buffer_close( &buf ); return 0; } else @@ -442,6 +444,7 @@ static int MKVMux( hb_mux_object_t * m, hb_mux_data_t * mux_data, } mk_addFrameData(m->file, mux_data->track, op->packet, op->bytes); mk_setFrameFlags(m->file, mux_data->track, timecode, 1, 0); + hb_buffer_close( &buf ); return 0; } } @@ -457,6 +460,7 @@ static int MKVMux( hb_mux_object_t * m, hb_mux_data_t * mux_data, mux_data == job->mux_data) ? (buf->frametype == HB_FRAME_IDR) : ((buf->frametype & HB_FRAME_KEY) != 0)), 0 ); + hb_buffer_close( &buf ); return 0; } |