]> git.sesse.net Git - vlc/commitdiff
libmpeg2: user_data has been available since 0.3.2
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 2 Oct 2008 19:12:15 +0000 (21:12 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 2 Oct 2008 19:12:15 +0000 (21:12 +0200)
Since we require libmpeg > 0.3.2 there is no need for this check.

modules/codec/libmpeg2.c

index b586e20c579a2b2a1df38a59be9df7a7de2fcaf4..8a5b7d948d8db1616409e49b348d4778fd2f7ae2 100644 (file)
@@ -453,7 +453,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 mpeg2_set_buf( p_sys->p_mpeg2dec, buf, p_pic );
                 mpeg2_stride( p_sys->p_mpeg2dec, p_pic->p[Y_PLANE].i_pitch );
             }
-#if MPEG2_RELEASE >= MPEG2_VERSION (0, 5, 0)
             if( p_sys->p_info->user_data_len > 2 )
             {
                 p_sys->i_cc_pts = i_pts;
@@ -468,7 +467,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
 
                 cc_Extract( &p_sys->cc, &p_sys->p_info->user_data[0], p_sys->p_info->user_data_len );
             }
-#endif
         }
         break;