omaenc: abort for unsupported codecs

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-11-24 09:51:47 +00:00
parent 6d6bf250dd
commit bc5ba1c7fd
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ static av_cold int oma_write_header(AVFormatContext *s)
default: default:
av_log(s, AV_LOG_ERROR, "OMA: unsupported codec tag %d for write\n", av_log(s, AV_LOG_ERROR, "OMA: unsupported codec tag %d for write\n",
format->codec_tag); format->codec_tag);
return AVERROR(EINVAL);
} }
for (i = 0; i < (EA3_HEADER_SIZE - 36)/4; i++) for (i = 0; i < (EA3_HEADER_SIZE - 36)/4; i++)
avio_wl32(s->pb, 0); /* Padding */ avio_wl32(s->pb, 0); /* Padding */