Browse Source

Only write extradata if it exists

Originally committed as revision 10328 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 18 years ago
parent
commit
8bea4aee4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/matroskaenc.c

+ 1
- 1
libavformat/matroskaenc.c View File

@@ -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…
Cancel
Save