diff options
author | saintdev <[email protected]> | 2007-06-17 00:51:17 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2007-06-17 00:51:17 +0000 |
commit | b7552e4d2409d1f2615caf418d4d0ac8d8bff981 (patch) | |
tree | 4b2b833a8e06dc16cf38c01182254d43612d8617 /libhb/muxogm.c | |
parent | 51a0dfdd04c910de55aa09db8a7039ea25999735 (diff) |
Switch buf->key to buf->frametype which is a bitmask telling us what type of frame we are dealing with.
This doesn't change any functionality, but I need to be able to distinguish between x264 IDR and I frames for the upcoming matroska muxer.
This also has the side effect of making the code a little easier to read and maintain.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@623 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxogm.c')
-rw-r--r-- | libhb/muxogm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/muxogm.c b/libhb/muxogm.c index 4a008ff78..86e44f0e9 100644 --- a/libhb/muxogm.c +++ b/libhb/muxogm.c @@ -268,7 +268,7 @@ static int OGMMux( hb_mux_object_t * m, hb_mux_data_t * mux_data, case HB_VCODEC_X264: op.bytes = buf->size + 1; op.packet = malloc( op.bytes ); - op.packet[0] = buf->key ? 0x08 : 0x00; + op.packet[0] = (buf->frametype & HB_FRAME_KEY) ? 0x08 : 0x00; memcpy( &op.packet[1], buf->data, buf->size ); op.b_o_s = 0; op.e_o_s = 0; |