mirror of
https://github.com/openharmony/third_party_ffmpeg.git
synced 2026-08-24 13:03:14 -04:00
@@ -208,7 +208,7 @@ static const CodecBitrateConfig codecBitrateConfigTable[CHANNEL_CONFIG_UNKNOWN]
|
||||
static int read_av3a_frame_header(AVS3AHeaderInfo *hdf, const uint8_t *buf, const int32_t byte_size)
|
||||
{
|
||||
GetBitContext gb;
|
||||
AVS3AChannelConfig channel_config = CHANNEL_CONFIG_MONO;
|
||||
AVS3AChannelConfig channel_config = CHANNEL_CONFIG_UNKNOWN;
|
||||
|
||||
uint8_t content_type = 0;
|
||||
uint8_t hoa_order = 0;
|
||||
@@ -467,7 +467,7 @@ static int32_t raw_av3a_parse(AVCodecParserContext *s, AVCodecContext *avctx, co
|
||||
{
|
||||
uint8_t header[MAX_NBYTES_FRAME_HEADER];
|
||||
AVS3AHeaderInfo hdf;
|
||||
hdf.channel_layout = AV_CH_LAYOUT_MONO;
|
||||
hdf.channel_layout = 0;
|
||||
|
||||
if (buf_size < MAX_NBYTES_FRAME_HEADER) {
|
||||
return buf_size;
|
||||
|
||||
@@ -230,7 +230,7 @@ static void adts_aac_get_duration(AVFormatContext *s, AVStream *st)
|
||||
int64_t frame_num = 0;
|
||||
int64_t stream_size = avio_size(s->pb);
|
||||
if (stream_size > 0) {
|
||||
while (offset < stream_size) {
|
||||
while (offset + 7 <= stream_size) {
|
||||
if ((frame_size = adts_aac_get_frame_length(s, offset)) == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user