Show
Ignore:
Timestamp:
21/08/08 19:08:54 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1219338534 +0200
git-parent:

[0bf165646d0dd39ad1bc698cdde0bbff1711e24d]

git-author:
Laurent Aimar <fenrir@videolan.org> 1219338381 +0200
Message:

Added BLOCK_FLAG_END_OF_SEQUENCE and use it for mpeg2.

Files:

Legend:

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

    r3561b9b re114bdd  
    446446             (p_frag->p_buffer[3] == 0x00 || p_frag->p_buffer[3] > 0xaf) ) 
    447447    { 
     448        const bool b_eos = p_frag->p_buffer[3] == 0xb7; 
     449 
    448450        mtime_t i_duration; 
    449451 
     452        if( b_eos ) 
     453        { 
     454            block_ChainLastAppend( &p_sys->pp_last, p_frag ); 
     455            p_frag = NULL; 
     456        } 
     457 
    450458        p_pic = block_ChainGather( p_sys->p_frame ); 
     459 
     460        if( b_eos ) 
     461            p_pic->i_flags |= BLOCK_FLAG_END_OF_SEQUENCE; 
    451462 
    452463        i_duration = (mtime_t)( 1000000 * p_sys->i_frame_rate_base / 
     
    564575    } 
    565576 
     577    if( !p_frag ) 
     578        return p_pic; 
    566579    /* 
    567580     * Check info of current fragment