Commit bc5ba1c7 authored by Paul B Mahol's avatar Paul B Mahol

omaenc: abort for unsupported codecs

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6d6bf250
......@@ -86,6 +86,7 @@ static av_cold int oma_write_header(AVFormatContext *s)
default:
av_log(s, AV_LOG_ERROR, "OMA: unsupported codec tag %d for write\n",
format->codec_tag);
return AVERROR(EINVAL);
}
for (i = 0; i < (EA3_HEADER_SIZE - 36)/4; i++)
avio_wl32(s->pb, 0); /* Padding */
......
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