]> git.sesse.net Git - vlc/commitdiff
* set extradata of the x264 encoder.
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 14 Aug 2006 21:45:19 +0000 (21:45 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 14 Aug 2006 21:45:19 +0000 (21:45 +0000)
modules/codec/x264.c

index f2ee1e763a496e62d843a75740540c1f8c1f508e..e1c20fdd800eb93ba9307dd9f6e8c6c81fc15efa 100644 (file)
@@ -538,6 +538,8 @@ static int  Open ( vlc_object_t *p_this )
     encoder_sys_t *p_sys;
     vlc_value_t    val;
     int i_qmin = 0, i_qmax = 0;
+    x264_nal_t    *nal;
+    int i, i_nal;
 
     if( p_enc->fmt_out.i_codec != VLC_FOURCC( 'h', '2', '6', '4' ) &&
         !p_enc->b_force )
@@ -938,7 +940,6 @@ static int  Open ( vlc_object_t *p_this )
     p_enc->fmt_out.i_extra = 0;
     p_enc->fmt_out.p_extra = NULL;
 
-#if 0
     x264_encoder_headers( p_sys->h, &nal, &i_nal );
     for( i = 0; i < i_nal; i++ )
     {
@@ -953,7 +954,6 @@ static int  Open ( vlc_object_t *p_this )
 
         p_enc->fmt_out.i_extra += i_size;
     }
-#endif
 
     return VLC_SUCCESS;
 }