- case VLC_FOURCC( 'I', '4', '2', '0' ):
- i_chroma = VLC_FOURCC( 'I', '4', '2', '0' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 3 / 2;
- break;
- case VLC_FOURCC( 'I', '4', '2', '2' ):
- i_chroma = VLC_FOURCC( 'I', '4', '2', '2' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 2;
- break;
- case VLC_FOURCC( 'Y', 'U', 'Y', '2' ):
- i_chroma = VLC_FOURCC( 'Y', 'U', 'Y', '2' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 2;
- break;
- default:
- msg_Err( p_vdec->p_fifo, "invalid codec=%4.4s", (char*)&p_vdec->p_fifo->i_fourcc );
- return( VLC_EGENERIC );
+ /* NB, davidf doesn't quite agree with this in general, it is ok
+ * for rawvideo since it is in order (ie pts=dts), however, it
+ * may not be ok for an out-of-order codec, so don't copy this
+ * without thinking */
+ date_Set( &p_sys->pts, p_block->i_dts );