Changeset 36bca799e67170ae4b290562c710e33cbb8b2905

Show
Ignore:
Timestamp:
03/09/08 01:20:05 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1220397605 +0200
git-parent:

[4a160042e7e3b27024f1076884301eedd7e0ff48]

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

Improved a bit still frame support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/dvdnav.c

    rbe40069 r36bca79  
    613613    { 
    614614    case DVDNAV_BLOCK_OK:   /* mpeg block */ 
     615        p_sys->p_ev->b_still = false; 
    615616        DemuxBlock( p_demux, packet, i_len ); 
    616617        break; 
     
    622623    case DVDNAV_STILL_FRAME: 
    623624    { 
    624         /* We send a dummy mpeg2 end of sequence to force still frame display */ 
    625         static const uint8_t buffer[] = { 
    626             0x00, 0x00, 0x01, 0xe0, 0x00, 0x07, 
    627             0x80, 0x00, 0x00, 
    628             0x00, 0x00, 0x01, 0xB7, 
    629         }; 
    630         DemuxBlock( p_demux, buffer, sizeof(buffer) ); 
    631  
    632         /* */ 
    633625        dvdnav_still_event_t *event = (dvdnav_still_event_t*)packet; 
    634626        vlc_mutex_lock( &p_sys->p_ev->lock ); 
    635627        if( !p_sys->p_ev->b_still ) 
    636628        { 
     629            /* We send a dummy mpeg2 end of sequence to force still frame display */ 
     630            static const uint8_t buffer[] = { 
     631                0x00, 0x00, 0x01, 0xe0, 0x00, 0x07, 
     632                0x80, 0x00, 0x00, 
     633                0x00, 0x00, 0x01, 0xB7, 
     634            }; 
     635            DemuxBlock( p_demux, buffer, sizeof(buffer) ); 
     636 
    637637            msg_Dbg( p_demux, "DVDNAV_STILL_FRAME" ); 
    638638            msg_Dbg( p_demux, "     - length=0x%x", event->length );