]> git.sesse.net Git - vlc/commitdiff
avcodec encoder: sets last-metadata-block for FLAC streams
authorRafaël Carré <rafael.carre@gmail.com>
Sun, 18 Oct 2009 15:11:45 +0000 (17:11 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Sun, 18 Oct 2009 15:12:38 +0000 (17:12 +0200)
Closes #805

modules/codec/avcodec/encoder.c

index 8a5664caa19d41c449cbd14f9fc129c025f1f060..c182a656555ced1bb1096a4a14ed7c9e90509c8d 100644 (file)
@@ -676,11 +676,11 @@ int OpenEncoder( vlc_object_t *p_this )
         if( p_enc->fmt_out.p_extra )
         {
             uint8_t *p = p_enc->fmt_out.p_extra;
-            p[0] = 0x66;
-            p[1] = 0x4C;
-            p[2] = 0x61;
-            p[3] = 0x43;
-            p[4] = 0x00;
+            p[0] = 0x66;    /* f */
+            p[1] = 0x4C;    /* L */
+            p[2] = 0x61;    /* a */
+            p[3] = 0x43;    /* C */
+            p[4] = 0x80;    /* streaminfo block, last block before audio */
             p[5] = ( p_context->extradata_size >> 16 ) & 0xff;
             p[6] = ( p_context->extradata_size >>  8 ) & 0xff;
             p[7] = ( p_context->extradata_size       ) & 0xff;