【修改说明】:解决自检视问题

Signed-off-by: Atrotro <wanganzhouhh@163.com>
This commit is contained in:
Atrotro 2024-10-29 20:11:32 +08:00
parent 0971183216
commit d2d4e08a1f
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}