summaryrefslogtreecommitdiff
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-10-12 15:37:56 +0200
committerAnton Khirnov <anton@khirnov.net>2013-10-12 15:37:56 +0200
commitfd2384f02b905a106fba9222ece4ddbe2ec61937 (patch)
treed4b29ad247ab95537f4ee9482b139bd6d7cea35c /libavformat/oggparsevorbis.c
parentc18375ec8040a9fe0f186b2033dc975883143758 (diff)
oggparsevorbis: fail on memory allocation error
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 7468e0dae4..c19b54552c 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -120,9 +120,7 @@ int ff_vorbis_comment(AVFormatContext *as, AVDictionary **m,
if (!tt || !ct) {
av_freep(&tt);
av_freep(&ct);
- av_log(as, AV_LOG_WARNING,
- "out-of-memory error. skipping VorbisComment tag.\n");
- continue;
+ return AVERROR(ENOMEM);
}
for (j = 0; j < tl; j++)