diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-24 09:51:47 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-24 10:04:20 +0000 |
commit | bc5ba1c7fd0b55909da2066e8020723d49744c54 (patch) | |
tree | 61dfc7e2c585f323e62e16df52155401c94f5c84 /libavformat/omaenc.c | |
parent | 6d6bf250dd46d408a1c3ba0d4b0acc9087e9a277 (diff) | |
download | ffmpeg-bc5ba1c7fd0b55909da2066e8020723d49744c54.tar.gz |
omaenc: abort for unsupported codecs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/omaenc.c')
-rw-r--r-- | libavformat/omaenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/omaenc.c b/libavformat/omaenc.c index ab31d65fac..d210e053fe 100644 --- a/libavformat/omaenc.c +++ b/libavformat/omaenc.c @@ -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 */ |