mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
cherry pick 729de8d
from https://gitee.com/atrotro/third_party_ffmpeg/pulls/315
【修改说明】:解决自检视问题 Signed-off-by: Atrotro <wanganzhouhh@163.com>
This commit is contained in:
parent
0971183216
commit
d2d4e08a1f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user