avformat/adtsenc: return value check for init_get_bits in adts_decode_extradata
authormaryam ebrahimzadeh <me22bee@outlook.com>
Wed, 4 Aug 2021 20:15:18 +0000 (16:15 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Aug 2021 19:04:43 +0000 (21:04 +0200)
commit9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6
treeb1eb423c96cbecf4bbce90cf3b85038ee17d12fe
parent89505d38de989bddd579ce3b841f1c011f1d7bf2
avformat/adtsenc: return value check for init_get_bits in adts_decode_extradata

As the second argument for init_get_bits (buf) can be crafted, a return value check for this function call is necessary.
'buf' is  part of  'AVPacket pkt'.
replace init_get_bits with init_get_bits8.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/adtsenc.c