Changeset 7ea9e5cc89fab3680c91cb136dc4c4ff8606750e

Show
Ignore:
Timestamp:
15/08/06 18:17:59 (2 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1155658679 +0000
git-parent:

[970efecd699a6ba0fb5482bed5291912b75e4737]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1155658679 +0000
Message:

* Get and write the correct profile_compat_byte

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/mux/mp4.c

    r32e5b14 r7ea9e5c  
    119119    { 
    120120        int     i_profile; 
     121        int     i_profile_compat; 
    121122        int     i_level; 
    122123 
     
    441442    p_stream->i_duration    = 0; 
    442443    p_stream->avc.i_profile = 77; 
    443     p_stream->avc.i_level   = 51; 
     444    p_stream->avc.i_profile_compat = 64; 
     445    p_stream->avc.i_level   = 30; 
    444446    p_stream->avc.i_sps     = 0; 
    445447    p_stream->avc.sps       = NULL; 
     
    722724 
    723725            tk->avc.i_profile = tk->avc.sps[1]; 
     726            tk->avc.i_profile = tk->avc.sps[2]; 
    724727            tk->avc.i_level   = tk->avc.sps[3]; 
    725728        } 
     
    930933    bo_add_8( avcC, 1 );      /* configuration version */ 
    931934    bo_add_8( avcC, p_stream->avc.i_profile ); 
    932     bo_add_8( avcC, p_stream->avc.i_profile );     /* profile compatible ??? */ 
     935    bo_add_8( avcC, p_stream->avc.i_profile_compat ); 
    933936    bo_add_8( avcC, p_stream->avc.i_level );       /* level, 5.1 */ 
    934937    bo_add_8( avcC, 0xff );   /* 0b11111100 | lengthsize = 0x11 */