mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 03:09:51 +00:00
增加编译命令-DOHOS_AV3A_DEMUXER
Signed-off-by: liushuai <cqliushuai@outlook.com>
This commit is contained in:
parent
688ea511f3
commit
a8372d8c94
@ -647,7 +647,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
|
||||
case AV_CODEC_ID_MP2:
|
||||
case AV_CODEC_ID_MUSEPACK7: return 1152;
|
||||
case AV_CODEC_ID_AC3: return 1536;
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
case AV_CODEC_ID_AVS3DA: return 1024;
|
||||
#endif
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ const AVCodecTag ff_codec_movaudio_tags[] = {
|
||||
{ AV_CODEC_ID_TRUEHD, MKTAG('m', 'l', 'p', 'a') }, /* mp4ra.org */
|
||||
{ AV_CODEC_ID_OPUS, MKTAG('O', 'p', 'u', 's') }, /* mp4ra.org */
|
||||
{ AV_CODEC_ID_MPEGH_3D_AUDIO, MKTAG('m', 'h', 'm', '1') }, /* MPEG-H 3D Audio bitstream */
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
{ AV_CODEC_ID_AVS3DA, MKTAG('a', 'v', '3', 'a') },
|
||||
#endif
|
||||
{ AV_CODEC_ID_NONE, 0 },
|
||||
|
@ -7923,7 +7923,7 @@ static int mov_read_gnre(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
static int mov_read_dca3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
{
|
||||
int ret = 0;
|
||||
@ -8164,7 +8164,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
|
||||
#ifdef OHOS_TIMED_META_TRACK
|
||||
{ MKTAG('c','d','s','c'), mov_read_cdsc },
|
||||
#endif
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
{ MKTAG('d','c','a','3'), mov_read_dca3 },
|
||||
#endif
|
||||
{ 0, NULL }
|
||||
|
@ -900,7 +900,7 @@ static int mov_write_dmlp_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra
|
||||
return update_size(pb, pos);
|
||||
}
|
||||
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
static int mov_write_dca3_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
|
||||
{
|
||||
int64_t pos = avio_tell(pb);
|
||||
@ -1331,7 +1331,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
|
||||
} else { /* reserved for mp4/3gp */
|
||||
if (track->par->codec_id == AV_CODEC_ID_FLAC ||
|
||||
track->par->codec_id == AV_CODEC_ID_ALAC ||
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
track->par->codec_id == AV_CODEC_ID_OPUS ||
|
||||
track->par->codec_id == AV_CODEC_ID_AVS3DA
|
||||
#else
|
||||
@ -1405,7 +1405,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
|
||||
ret = mov_write_dops_tag(s, pb, track);
|
||||
else if (track->par->codec_id == AV_CODEC_ID_TRUEHD)
|
||||
ret = mov_write_dmlp_tag(s, pb, track);
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
else if (track->par->codec_id == AV_CODEC_ID_AVS3DA)
|
||||
ret = mov_write_dca3_tag(s, pb, track);
|
||||
#endif
|
||||
@ -8360,7 +8360,7 @@ static const AVCodecTag codec_mp4_tags[] = {
|
||||
#ifdef OHOS_TIMED_META_TRACK
|
||||
{ AV_CODEC_ID_FFMETADATA, MKTAG('c', 'd', 's', 'c') },
|
||||
#endif
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
{ AV_CODEC_ID_AVS3DA, MKTAG('a', 'v', '3', 'a') },
|
||||
#endif
|
||||
{ AV_CODEC_ID_NONE, 0 },
|
||||
|
@ -1408,7 +1408,7 @@ static const StreamType ISO_types[] = {
|
||||
{ 0xd1, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_DIRAC },
|
||||
{ 0xd2, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_AVS2 },
|
||||
{ 0xd4, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_AVS3 },
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
{ 0xd5, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AVS3DA },
|
||||
#endif
|
||||
{ 0xea, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_VC1 },
|
||||
|
@ -433,7 +433,7 @@ static int get_dvb_stream_type(AVFormatContext *s, AVStream *st)
|
||||
stream_type = STREAM_TYPE_PRIVATE_DATA;
|
||||
}
|
||||
break;
|
||||
#ifdef DOHOS_AV3A_DEMUXER
|
||||
#ifdef OHOS_AV3A_DEMUXER
|
||||
case AV_CODEC_ID_AVS3DA:
|
||||
stream_type = STREAM_TYPE_AUDIO_AV3A;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user