Browse Source

avformat/cafdec: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
773f2a563f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/cafdec.c

+ 1
- 2
libavformat/cafdec.c View File

@@ -154,9 +154,8 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size)
avio_skip(pb, size - ALAC_NEW_KUKI);
}
} else {
if (ff_alloc_extradata(st->codec, size))
if (ff_get_extradata(st->codec, pb, size) < 0)
return AVERROR(ENOMEM);
avio_read(pb, st->codec->extradata, size);
}

return 0;


Loading…
Cancel
Save