Commit fd2384f0 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Anton Khirnov

oggparsevorbis: fail on memory allocation error

parent c18375ec
...@@ -120,9 +120,7 @@ int ff_vorbis_comment(AVFormatContext *as, AVDictionary **m, ...@@ -120,9 +120,7 @@ int ff_vorbis_comment(AVFormatContext *as, AVDictionary **m,
if (!tt || !ct) { if (!tt || !ct) {
av_freep(&tt); av_freep(&tt);
av_freep(&ct); av_freep(&ct);
av_log(as, AV_LOG_WARNING, return AVERROR(ENOMEM);
"out-of-memory error. skipping VorbisComment tag.\n");
continue;
} }
for (j = 0; j < tl; j++) for (j = 0; j < tl; j++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment