Mercurial > libavformat.hg
changeset 2459:784c7327ef24 libavformat
Only write extradata if it exists
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:23:46 +0000 |
parents | 7286ab3bf026 |
children | c13388c21c2d |
files | matroskaenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Wed Sep 05 00:23:43 2007 +0000 +++ b/matroskaenc.c Wed Sep 05 00:23:46 2007 +0000 @@ -420,7 +420,7 @@ 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); } }