mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-02 08:37:12 +00:00
Only write extradata if it exists
Originally committed as revision 10328 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07918a227a
commit
8bea4aee4f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user