diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-12-25 11:15:40 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2022-01-30 13:26:35 +0800 |
commit | c825de87c95ac4c70b9495268fcd26bd10dd0027 (patch) | |
tree | 9792d4f9930f379ce787f374cca8eb36c7fd1410 /libavformat/rtpdec_latm.c | |
parent | d9f05bea5cc7a8c4bb0569eecbe24a26def7f476 (diff) | |
download | ffmpeg-c825de87c95ac4c70b9495268fcd26bd10dd0027.tar.gz |
avformat/rtpdec: return value check for init_get_bits()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtpdec_latm.c')
-rw-r--r-- | libavformat/rtpdec_latm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c index 104a00af18..329b8dbc3e 100644 --- a/libavformat/rtpdec_latm.c +++ b/libavformat/rtpdec_latm.c @@ -101,7 +101,9 @@ static int parse_fmtp_config(AVStream *st, const char *value) if (!config) return AVERROR(ENOMEM); ff_hex_to_data(config, value); - init_get_bits(&gb, config, len*8); + ret = init_get_bits(&gb, config, len*8); + if (ret < 0) + return ret; audio_mux_version = get_bits(&gb, 1); same_time_framing = get_bits(&gb, 1); skip_bits(&gb, 6); /* num_sub_frames */ |