aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dca_parser.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-07-19 01:53:22 -0300
committerJames Almer <jamrial@gmail.com>2017-07-21 12:18:10 -0300
commit7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e (patch)
tree8e09f06e0aacaaeab767a406766d53e79b8acd1a /libavcodec/dca_parser.c
parent99c5ac20397ec1814d6a50bed74cadd421ad8b9d (diff)
downloadffmpeg-7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e.tar.gz
avcodec/dca: remove GetBitContext usage from avpriv_dca_parse_core_frame_header()
This prevents potential ABI issues with GetBitContext. Reviewed-by: foo86 <foobaz86@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_parser.c')
-rw-r--r--libavcodec/dca_parser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c
index 7e99b16bf0..11ddb8f188 100644
--- a/libavcodec/dca_parser.c
+++ b/libavcodec/dca_parser.c
@@ -263,9 +263,7 @@ static int dca_parse_params(DCAParseContext *pc1, const uint8_t *buf,
if ((ret = avpriv_dca_convert_bitstream(buf, DCA_CORE_FRAME_HEADER_SIZE,
hdr, DCA_CORE_FRAME_HEADER_SIZE)) < 0)
return ret;
- if ((ret = init_get_bits8(&gb, hdr, ret)) < 0)
- return ret;
- if (avpriv_dca_parse_core_frame_header(&gb, &h) < 0)
+ if (avpriv_dca_parse_core_frame_header(&h, hdr, ret) < 0)
return AVERROR_INVALIDDATA;
*duration = h.npcmblocks * DCA_PCMBLOCK_SAMPLES;