summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/flacdec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 42310b24a0..b3592f4183 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -141,10 +141,9 @@ static av_cold int flac_decode_init(AVCodecContext *avctx)
if (!ff_flac_is_extradata_valid(avctx, &format, &streaminfo))
return -1;
- /* initialize based on the demuxer-supplied streamdata header */
- ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s,
- streaminfo);
- allocate_buffers(s);
+ /* initialize based on the demuxer-supplied streamdata header */
+ ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s, streaminfo);
+ allocate_buffers(s);
return 0;
}