[vlc-devel] Patch to enable H264 playback on iPhones.
jean-paul.saman at planet.nl
Wed Jan 9 20:20:49 CET 2008
Christopher Key wrote:
> Attached is a patch that fixes a long standing problem whereby video
> encoded with vlc using x264 cannot be made playable on an iPhone. The
> issue was traced to the H264 profile value being incorrectly set, which
> this patch addresses. Looking at the code, the trunk appears to have
> had a complete rewrite and should be unaffected, but this may be useful
> for a 0.8.6e release.
> --- vlc-0.8.6d/modules/mux/mp4.c.orig 2007-11-26 13:08:07.000000000 +0000
> +++ vlc-0.8.6d/modules/mux/mp4.c 2008-01-08 01:59:50.000000000 +0000
> @@ -723,7 +723,7 @@
> memcpy( tk->avc.sps, &last, i_size );
> tk->avc.i_profile = tk->avc.sps;
> - tk->avc.i_profile = tk->avc.sps;
> + tk->avc.i_profile_compat = tk->avc.sps;
> tk->avc.i_level = tk->avc.sps;
> else if( (last&0x1f) == 8 && tk->avc.i_pps <= 0 ) /* PPS */
Could you also test vlc-trunk behaviour for the iPhone, please ?
More information about the vlc-devel