avcodec/libopusdec: Set codec->delay to pre_skip not fixed value

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/51/head
Jan Gerber 11 years ago committed by Michael Niedermayer
parent 05c3c568dc
commit b2597042e5
  1. 4
      libavcodec/libopusdec.c

@ -108,8 +108,8 @@ static av_cold int libopus_decode_init(AVCodecContext *avc)
} }
#endif #endif
avc->internal->skip_samples = opus->pre_skip; /* Decoder delay (in samples) at 48kHz */
avc->delay = 3840; /* Decoder delay (in samples) at 48kHz */ avc->delay = avc->internal->skip_samples = opus->pre_skip;
return 0; return 0;
} }

Loading…
Cancel
Save