Commit 6d74a40d authored by conrad's avatar conrad

Only write extradata if it exists


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10328 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 69a11502
......@@ -420,7 +420,7 @@ static int mkv_write_tracks(AVFormatContext *s)
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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment