diff options
author | James Almer <jamrial@gmail.com> | 2017-07-19 01:53:22 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-07-21 12:18:10 -0300 |
commit | 7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e (patch) | |
tree | 8e09f06e0aacaaeab767a406766d53e79b8acd1a /libavformat/dtsdec.c | |
parent | 99c5ac20397ec1814d6a50bed74cadd421ad8b9d (diff) | |
download | ffmpeg-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 'libavformat/dtsdec.c')
-rw-r--r-- | libavformat/dtsdec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c index 6e0048f9bc..a3e52cd596 100644 --- a/libavformat/dtsdec.c +++ b/libavformat/dtsdec.c @@ -101,9 +101,7 @@ static int dts_probe(AVProbeData *p) if ((ret = avpriv_dca_convert_bitstream(buf - 2, DCA_CORE_FRAME_HEADER_SIZE, hdr, DCA_CORE_FRAME_HEADER_SIZE)) < 0) continue; - if (init_get_bits8(&gb, hdr, ret) < 0) - continue; - if (avpriv_dca_parse_core_frame_header(&gb, &h) < 0) + if (avpriv_dca_parse_core_frame_header(&h, hdr, ret) < 0) continue; marker += 4 * h.sr_code; |