X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fomadec.c;h=9521b6d59e9b3c53c68725d4d4c62099cdb4b5e8;hb=f15007afa90a3eb3639848d9702c1cc3ac3e896b;hp=423d52b3aaf09194f4bda8f6d011def58759f828;hpb=fda424b300c1a0b991296aa585691609d01196bd;p=ffmpeg diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 423d52b3aaf..9521b6d59e9 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -459,8 +459,8 @@ static int oma_read_header(AVFormatContext *s) /* fake the ATRAC3 extradata * (wav format, makes stream copy to wav work) */ - if (ff_alloc_extradata(st->codecpar, 14)) - return AVERROR(ENOMEM); + if ((ret = ff_alloc_extradata(st->codecpar, 14)) < 0) + return ret; edata = st->codecpar->extradata; AV_WL16(&edata[0], 1); // always 1 @@ -539,7 +539,7 @@ static int oma_read_packet(AVFormatContext *s, AVPacket *pkt) return oc->read_packet(s, pkt); } -static int oma_read_probe(AVProbeData *p) +static int oma_read_probe(const AVProbeData *p) { const uint8_t *buf = p->buf; unsigned tag_len = 0;