Skip to content

Commit

Permalink
Use h.264 baseline profile for mp4 if setting iphone is set to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtom committed May 28, 2009
1 parent c344b33 commit f8053d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/flix_engine/flix_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ VALUE FlixEngine_enable_mp4(VALUE self, VALUE settings)
CHECKSC( Flix2_CodecSetParam(codec, FE2_H264_BITRATE, NUM2INT(bitrate)) )
}

VALUE iphone = rb_hash_aref(settings, ID2SYM(rb_intern("iphone")));
if (iphone == Qtrue) {
Flix2_CodecSetParam(codec, FE2_H264_PROFILE, BASE_H264PROFILE);
}

CHECKSC( Flix2_AddMuxer(&muxer, flix, FE2_MUXER_MP4) )
CHECKSC( Flix2_AddCodec(&codec, flix, FE2_CODEC_AAC) )

Expand Down

0 comments on commit f8053d1

Please sign in to comment.