diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index 254865bb64..32eca27c10 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -2142,7 +2142,6 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8); if ((ret = dca_parse_frame_header(s)) < 0) { //seems like the frame is corrupt, try with the next one return ret;