mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
apetag: reindent
This commit is contained in:
parent
02a951b919
commit
728d2afa17
@ -88,15 +88,15 @@ static int ape_tag_read_field(AVFormatContext *s)
|
||||
st->attached_pic.stream_index = st->index;
|
||||
st->attached_pic.flags |= AV_PKT_FLAG_KEY;
|
||||
} else {
|
||||
st->codec->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!st->codec->extradata)
|
||||
return AVERROR(ENOMEM);
|
||||
if (avio_read(pb, st->codec->extradata, size) != size) {
|
||||
av_freep(&st->codec->extradata);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
st->codec->extradata_size = size;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
|
||||
st->codec->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!st->codec->extradata)
|
||||
return AVERROR(ENOMEM);
|
||||
if (avio_read(pb, st->codec->extradata, size) != size) {
|
||||
av_freep(&st->codec->extradata);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
st->codec->extradata_size = size;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
|
||||
}
|
||||
} else {
|
||||
value = av_malloc(size+1);
|
||||
|
Loading…
Reference in New Issue
Block a user