Changeset 71a183b9a7c6d0ed146a3f804a0dd1cf2d377134

Show
Ignore:
Timestamp:
03/31/07 21:08:12 (1 year ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1175368092 +0000
git-parent:

[4d708a514036a2eec993b0b4a1cc5c9ecee26e7a]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1175368092 +0000
Message:

Check the input chroma. (We only want to work on I420 for the moment)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_filter/erase.c

    ref8b4b0 r71a183b  
    175175 
    176176    if( !p_pic ) return NULL; 
     177    switch( p_pic->format.i_chroma ) 
     178    { 
     179        case VLC_FOURCC('I','4','2','0'): 
     180        case VLC_FOURCC('I','Y','U','V'): 
     181        case VLC_FOURCC('J','4','2','0'): 
     182        case VLC_FOURCC('Y','V','1','2'): 
     183            break; 
     184        default: 
     185            msg_Warn( p_filter, "Unsupported input chroma (%4s)", 
     186                      (char*)&(p_pic->format.i_chroma) ); 
     187            if( p_pic->pf_release ) 
     188                p_pic->pf_release( p_pic ); 
     189            return NULL; 
     190    } 
    177191 
    178192    p_outpic = p_filter->pf_vout_buffer_new( p_filter );