diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-03 14:30:00 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-03 14:30:00 +0100 |
commit | d6af8e68c41133ee5b0eb9e985686c46fe0aa57e (patch) | |
tree | 625b586f355fbabc88a5e6925ad849d8ef20c6a4 | |
parent | 80af00b4b23a38dd8c63b892cd103af0d9407452 (diff) | |
download | ffmpeg-d6af8e68c41133ee5b0eb9e985686c46fe0aa57e.tar.gz |
Cosmetics: Reindent after last commit.
-rw-r--r-- | libavformat/cafdec.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 4078f11531..2b22fcc88c 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -129,18 +129,18 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size) avio_read(pb, st->codec->extradata + ALAC_HEADER - ALAC_NEW_KUKI, ALAC_NEW_KUKI); st->codec->extradata_size = ALAC_HEADER; } else { - if (size < ALAC_PREAMBLE + ALAC_HEADER) { - av_log(s, AV_LOG_ERROR, "invalid ALAC magic cookie\n"); - avio_skip(pb, size); - return AVERROR_INVALIDDATA; - } - avio_skip(pb, ALAC_PREAMBLE); - st->codec->extradata = av_mallocz(ALAC_HEADER + FF_INPUT_BUFFER_PADDING_SIZE); - if (!st->codec->extradata) - return AVERROR(ENOMEM); - avio_read(pb, st->codec->extradata, ALAC_HEADER); - st->codec->extradata_size = ALAC_HEADER; - avio_skip(pb, size - ALAC_PREAMBLE - ALAC_HEADER); + if (size < ALAC_PREAMBLE + ALAC_HEADER) { + av_log(s, AV_LOG_ERROR, "invalid ALAC magic cookie\n"); + avio_skip(pb, size); + return AVERROR_INVALIDDATA; + } + avio_skip(pb, ALAC_PREAMBLE); + st->codec->extradata = av_mallocz(ALAC_HEADER + FF_INPUT_BUFFER_PADDING_SIZE); + if (!st->codec->extradata) + return AVERROR(ENOMEM); + avio_read(pb, st->codec->extradata, ALAC_HEADER); + st->codec->extradata_size = ALAC_HEADER; + avio_skip(pb, size - ALAC_PREAMBLE - ALAC_HEADER); } } else { st->codec->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); |