mirror of https://git.ffmpeg.org/ffmpeg.git
omaenc: abort for unsupported codecs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6d6bf250dd
commit
bc5ba1c7fd
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue