|
|
|
@@ -547,7 +547,6 @@ static int ogg_init(AVFormatContext *s) |
|
|
|
&st->metadata); |
|
|
|
if (err) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Error writing FLAC headers\n"); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
return err; |
|
|
|
} |
|
|
|
} else if (st->codecpar->codec_id == AV_CODEC_ID_SPEEX) { |
|
|
|
@@ -556,7 +555,6 @@ static int ogg_init(AVFormatContext *s) |
|
|
|
&st->metadata); |
|
|
|
if (err) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Error writing Speex headers\n"); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
return err; |
|
|
|
} |
|
|
|
} else if (st->codecpar->codec_id == AV_CODEC_ID_OPUS) { |
|
|
|
@@ -565,7 +563,6 @@ static int ogg_init(AVFormatContext *s) |
|
|
|
&st->metadata, s->chapters, s->nb_chapters); |
|
|
|
if (err) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Error writing Opus headers\n"); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
return err; |
|
|
|
} |
|
|
|
} else if (st->codecpar->codec_id == AV_CODEC_ID_VP8) { |
|
|
|
@@ -573,7 +570,6 @@ static int ogg_init(AVFormatContext *s) |
|
|
|
s->flags & AVFMT_FLAG_BITEXACT); |
|
|
|
if (err) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Error writing VP8 headers\n"); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
return err; |
|
|
|
} |
|
|
|
} else { |
|
|
|
@@ -586,7 +582,7 @@ static int ogg_init(AVFormatContext *s) |
|
|
|
st->codecpar->codec_id == AV_CODEC_ID_VORBIS ? 30 : 42, |
|
|
|
(const uint8_t**)oggstream->header, oggstream->header_len) < 0) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Extradata corrupted\n"); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
oggstream->header[1] = NULL; |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -754,7 +750,6 @@ static void ogg_free(AVFormatContext *s) |
|
|
|
av_freep(&oggstream->header[0]); |
|
|
|
} |
|
|
|
av_freep(&oggstream->header[1]); |
|
|
|
av_freep(&st->priv_data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|