summaryrefslogtreecommitdiffstats
path: root/libhb/muxmp4.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-08-22 20:33:35 +0000
committerRodeo <[email protected]>2013-08-22 20:33:35 +0000
commitd41905d539046445e1b81499ff7bd04d170c91d4 (patch)
tree3f39a09e757bca8bc461d46303a2cb1c35e8d9a6 /libhb/muxmp4.c
parentc1a493b581f0567eba92625f2ee132de8e7f1d6d (diff)
Big merge, QSV to trunk: part 1 (tracked files).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5737 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxmp4.c')
-rw-r--r--libhb/muxmp4.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c
index 6f7ecab54..bd706d29c 100644
--- a/libhb/muxmp4.c
+++ b/libhb/muxmp4.c
@@ -136,7 +136,7 @@ static int MP4Init( hb_mux_object_t * m )
return 0;
}
- if( job->vcodec == HB_VCODEC_X264 )
+ if (job->vcodec & HB_VCODEC_H264_MASK)
{
/* Stolen from mp4creator */
MP4SetVideoProfileLevel( m->file, 0x7F );
@@ -691,8 +691,8 @@ static int MP4Mux( hb_mux_object_t * m, hb_mux_data_t * mux_data,
if( mux_data == job->mux_data )
{
/* Video */
- if( job->vcodec == HB_VCODEC_X264 ||
- ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) )
+ if ((job->vcodec & HB_VCODEC_H264_MASK) ||
+ (job->vcodec & HB_VCODEC_FFMPEG_MASK))
{
if ( buf && buf->s.start < buf->s.renderOffset )
{
@@ -713,8 +713,8 @@ static int MP4Mux( hb_mux_object_t * m, hb_mux_data_t * mux_data,
stop = buf->s.start + buf->s.duration;
- if( job->vcodec == HB_VCODEC_X264 ||
- ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) )
+ if ((job->vcodec & HB_VCODEC_H264_MASK) ||
+ (job->vcodec & HB_VCODEC_FFMPEG_MASK))
{
// x264 supplies us with DTS, so offset is PTS - DTS
offset = buf->s.start - buf->s.renderOffset;
@@ -751,8 +751,8 @@ static int MP4Mux( hb_mux_object_t * m, hb_mux_data_t * mux_data,
}
}
- if( job->vcodec == HB_VCODEC_X264 ||
- ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) )
+ if ((job->vcodec & HB_VCODEC_H264_MASK) ||
+ (job->vcodec & HB_VCODEC_FFMPEG_MASK))
{
// x264 supplies us with DTS
if ( m->delay_buf )
@@ -829,9 +829,8 @@ static int MP4Mux( hb_mux_object_t * m, hb_mux_data_t * mux_data,
}
/* Here's where the sample actually gets muxed. */
- if( ( job->vcodec == HB_VCODEC_X264 ||
- ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) )
- && mux_data == job->mux_data )
+ if (mux_data == job->mux_data && ((job->vcodec & HB_VCODEC_H264_MASK) ||
+ (job->vcodec & HB_VCODEC_FFMPEG_MASK)))
{
/* Compute dependency flags.
*