[FFmpeg-soc] [soc]: r469 - matroska/matroskaenc.c

conrad subversion at mplayerhq.hu
Wed Jul 18 00:30:44 CEST 2007


Author: conrad
Date: Wed Jul 18 00:30:44 2007
New Revision: 469

Log:
Only write extradata if it exists

Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Wed Jul 18 00:30:44 2007
@@ -420,7 +420,7 @@ static int mkv_write_tracks(AVFormatCont
             if (codec->codec_id == CODEC_ID_VORBIS || codec->codec_id == CODEC_ID_THEORA) {
                 if (put_xiph_codecpriv(pb, codec) < 0)
                     return -1;
-            } else {
+            } else if (codec->extradata_size) {
                 put_ebml_binary(pb, MATROSKA_ID_CODECPRIVATE, codec->extradata, codec->extradata_size);
             }
         }



More information about the FFmpeg-soc mailing list