Commit 8bea4aee authored by David Conrad's avatar David Conrad

Only write extradata if it exists

Originally committed as revision 10328 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 07918a22
......@@ -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