avformat/rsd: reindent after the last commit
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
01c63e69f1
commit
183827e689
@ -122,27 +122,27 @@ static int rsd_read_header(AVFormatContext *s)
|
|||||||
st->duration = av_get_audio_frame_duration(codec, avio_size(pb) - start);
|
st->duration = av_get_audio_frame_duration(codec, avio_size(pb) - start);
|
||||||
break;
|
break;
|
||||||
case AV_CODEC_ID_ADPCM_THP_LE:
|
case AV_CODEC_ID_ADPCM_THP_LE:
|
||||||
/* RSD3GADP is mono, so only alloc enough memory
|
/* RSD3GADP is mono, so only alloc enough memory
|
||||||
to store the coeff table for a single channel. */
|
to store the coeff table for a single channel. */
|
||||||
|
|
||||||
start = avio_rl32(pb);
|
start = avio_rl32(pb);
|
||||||
|
|
||||||
if ((ret = ff_get_extradata(codec, s->pb, 32)) < 0)
|
if ((ret = ff_get_extradata(codec, s->pb, 32)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if (pb->seekable)
|
if (pb->seekable)
|
||||||
st->duration = av_get_audio_frame_duration(codec, avio_size(pb) - start);
|
st->duration = av_get_audio_frame_duration(codec, avio_size(pb) - start);
|
||||||
break;
|
break;
|
||||||
case AV_CODEC_ID_ADPCM_THP:
|
case AV_CODEC_ID_ADPCM_THP:
|
||||||
codec->block_align = 8 * codec->channels;
|
codec->block_align = 8 * codec->channels;
|
||||||
avio_skip(s->pb, 0x1A4 - avio_tell(s->pb));
|
avio_skip(s->pb, 0x1A4 - avio_tell(s->pb));
|
||||||
|
|
||||||
if ((ret = ff_alloc_extradata(st->codec, 32 * st->codec->channels)) < 0)
|
if ((ret = ff_alloc_extradata(st->codec, 32 * st->codec->channels)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
for (i = 0; i < st->codec->channels; i++) {
|
for (i = 0; i < st->codec->channels; i++) {
|
||||||
avio_read(s->pb, st->codec->extradata + 32 * i, 32);
|
avio_read(s->pb, st->codec->extradata + 32 * i, 32);
|
||||||
avio_skip(s->pb, 8);
|
avio_skip(s->pb, 8);
|
||||||
}
|
}
|
||||||
if (pb->seekable)
|
if (pb->seekable)
|
||||||
st->duration = (avio_size(pb) - start) / (8 * st->codec->channels) * 14;
|
st->duration = (avio_size(pb) - start) / (8 * st->codec->channels) * 14;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user