Changeset d21227b69cf07e6a34f20df5d01f208338992e4a

Show
Ignore:
Timestamp:
07/19/05 10:39:50 (3 years ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1121762390 +0000
git-parent:

[17864a3f3f51cd36b380ef99228a7c59e309ef1c]

git-author:
Laurent Aimar <fenrir@videolan.org> 1121762390 +0000
Message:
  • h264: handle SPS/PPS in annexb format in extra data (needed for RTP).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/packetizer/h264.c

    rfe087a3 rd21227b  
    206206        /* Set callback */ 
    207207        p_dec->pf_packetize = Packetize; 
     208 
     209        /* */ 
     210        if( p_dec->fmt_in.i_extra > 0 ) 
     211        { 
     212            block_t *p_init = block_New( p_dec, p_dec->fmt_in.i_extra ); 
     213            block_t *p_pic; 
     214 
     215            memcpy( p_init->p_buffer, p_dec->fmt_in.p_extra, 
     216                    p_dec->fmt_in.i_extra ); 
     217 
     218            while( ( p_pic = Packetize( p_dec, &p_init ) ) ) 
     219            { 
     220                /* Should not occur because we should only receive SPS/PPS */ 
     221                block_Release( p_pic ); 
     222            } 
     223        } 
    208224    } 
    209225