[FFmpeg-cvslog] omaenc: abort for unsupported codecs

Paul B Mahol git at videolan.org
Sat Nov 24 11:06:32 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Nov 24 09:51:47 2012 +0000| [bc5ba1c7fd0b55909da2066e8020723d49744c54] | committer: Paul B Mahol

omaenc: abort for unsupported codecs

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc5ba1c7fd0b55909da2066e8020723d49744c54
---

 libavformat/omaenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/omaenc.c b/libavformat/omaenc.c
index ab31d65..d210e05 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 */



More information about the ffmpeg-cvslog mailing list