mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-19 21:46:58 +00:00
libspeexdec: do not set AVCodecContext.frame_size
It is not necessary
This commit is contained in:
parent
adbf61ff8a
commit
85469f1c9e
@ -54,9 +54,6 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
|
|||||||
if (s->header) {
|
if (s->header) {
|
||||||
avctx->sample_rate = s->header->rate;
|
avctx->sample_rate = s->header->rate;
|
||||||
avctx->channels = s->header->nb_channels;
|
avctx->channels = s->header->nb_channels;
|
||||||
avctx->frame_size = s->frame_size = s->header->frame_size;
|
|
||||||
if (s->header->frames_per_packet)
|
|
||||||
avctx->frame_size *= s->header->frames_per_packet;
|
|
||||||
|
|
||||||
mode = speex_lib_get_mode(s->header->mode);
|
mode = speex_lib_get_mode(s->header->mode);
|
||||||
if (!mode) {
|
if (!mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user