Commit 7e41f915 authored by jbr's avatar jbr

oggenc: return error value from ogg_build_flac_headers()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19247 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1319cf4a
......@@ -149,10 +149,12 @@ static int ogg_write_header(AVFormatContext *s)
oggstream = av_mallocz(sizeof(*oggstream));
st->priv_data = oggstream;
if (st->codec->codec_id == CODEC_ID_FLAC) {
if (ogg_build_flac_headers(st->codec,
oggstream, st->codec->flags & CODEC_FLAG_BITEXACT) < 0) {
int err = ogg_build_flac_headers(st->codec, oggstream,
st->codec->flags & CODEC_FLAG_BITEXACT);
if (err) {
av_log(s, AV_LOG_ERROR, "Extradata corrupted\n");
av_freep(&st->priv_data);
return err;
}
} else {
if (ff_split_xiph_headers(st->codec->extradata, st->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