oggparsevorbis: fail on memory allocation error

pull/37/merge
Vittorio Giovara 12 years ago committed by Anton Khirnov
parent c18375ec80
commit fd2384f02b
  1. 4
      libavformat/oggparsevorbis.c

@ -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++)

Loading…
Cancel
Save