mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
avcodec/wavpack: Only initialize DSD data when encountering DSD
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
1c2860e815
commit
e81fa9f482
@ -1049,8 +1049,6 @@ static av_cold int wavpack_decode_init(AVCodecContext *avctx)
|
||||
if (!s->curr_frame.f || !s->prev_frame.f)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
ff_init_dsd_data();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1529,6 +1527,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
|
||||
return ret;
|
||||
}
|
||||
ff_thread_release_ext_buffer(&wc->curr_frame);
|
||||
ff_init_dsd_data();
|
||||
}
|
||||
av_channel_layout_copy(&avctx->ch_layout, &new_ch_layout);
|
||||
avctx->sample_rate = new_samplerate;
|
||||
|
Loading…
Reference in New Issue
Block a user