MCPcopy Create free account
hub / github.com/codestation/qcma / getAudioMetadata

Method getAudioMetadata

common/avdecoder.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void AVDecoder::getAudioMetadata(metadata_t &metadata)
103{
104 metadata.data.music.artist = strdup(getMetadataEntry("artist", ""));
105 metadata.data.music.album = strdup(getMetadataEntry("album", ""));
106 metadata.data.music.title = strdup(getMetadataEntry("title", ""));
107
108 if(loadCodec(CODEC_AUDIO)) {
109 metadata.data.music.tracks->data.track_audio.bitrate = pCodecCtx->bit_rate;
110 } else {
111 metadata.data.music.tracks->data.track_audio.bitrate = pFormatCtx->bit_rate;
112 }
113}
114
115void AVDecoder::getVideoMetadata(metadata_t &metadata)
116{

Callers 1

database.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected