diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-04-14 10:26:57 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-04-14 11:56:26 +0200 |
commit | b3d905b702dcdda9e3ae2bcb7b5580ca77a96ab7 (patch) | |
tree | 2dd7ebd7eda6ea34dada860fe293303f5bf326c6 | |
parent | 4d40e073dcdef335215c124d340ea156bc4bdf13 (diff) | |
download | ffmpeg-b3d905b702dcdda9e3ae2bcb7b5580ca77a96ab7.tar.gz |
dcadec: Delete redundant init_get_bits call
No initialization is needed in dca_decode_frame, because the next
thing it does is calling dca_parse_frame_header, which takes care of
the needed initialization.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavcodec/dcadec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index 94e79d2afc..c8877d6d1f 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -1724,7 +1724,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; |