[vlc-devel] commit: avcodec encoder: sets last-metadata-block for FLAC streams ( Rafaël Carré )

git version control git at videolan.org
Sun Oct 18 17:29:30 CEST 2009


vlc | branch: 1.0-bugfix | Rafaël Carré <rafael.carre at gmail.com> | Sun Oct 18 17:11:45 2009 +0200| [67f5fd87f720e5a2bbde0a09caeb30cf96c9be4c] | committer: Rafaël Carré 

avcodec encoder: sets last-metadata-block for FLAC streams

Closes #805
(cherry picked from commit 5fe7435e7f6d785d0668cede62bbce533601ad22)

Signed-off-by: Rafaël Carré <rafael.carre at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67f5fd87f720e5a2bbde0a09caeb30cf96c9be4c
---

 modules/codec/avcodec/encoder.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 275c352..4aefaec 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -706,11 +706,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;




More information about the vlc-devel mailing list