AAC & AC3 readers: use codec_c for common codec names

This commit is contained in:
Moritz Bunkus 2013-12-27 23:20:58 +01:00
parent cd4a9b6600
commit c810f64b9c
3 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,7 @@
#include <algorithm>
#include "common/codec.h"
#include "common/error.h"
#include "common/id3.h"
#include "input/r_aac.h"
@ -156,7 +157,7 @@ aac_reader_c::identify() {
std::string verbose_info = std::string("aac_is_sbr:") + std::string(AAC_PROFILE_SBR == m_aacheader.profile ? "true" : "unknown");
id_result_container();
id_result_track(0, ID_RESULT_TRACK_AUDIO, "AAC", verbose_info);
id_result_track(0, ID_RESULT_TRACK_AUDIO, codec_c::get_name(CT_A_AAC, "AAC"), verbose_info);
}
int

View File

@ -17,6 +17,7 @@
#include <avilib.h>
#include "common/codec.h"
#include "common/error.h"
#include "common/id3.h"
#include "input/r_ac3.h"
@ -110,7 +111,7 @@ ac3_reader_c::read(generic_packetizer_c *,
void
ac3_reader_c::identify() {
id_result_container();
id_result_track(0, ID_RESULT_TRACK_AUDIO, m_ac3header.is_eac3() ? "EAC3" : "AC3");
id_result_track(0, ID_RESULT_TRACK_AUDIO, codec_c::get_name(CT_A_AC3, "AC3"));
}
int

View File

@ -63,7 +63,7 @@ T_213mp4_broken_pixel_dimensions:2e3bfee9ea899238fa0d9d96ba66945c:passed:2005091
T_214one_frame_avi:036fdbdc91ce3c061aa04eb8910ff1e7:passed:20051004-192755:0.039489971
T_215X_codec_extradata_avi:324b8054fd47e9a3f7fb2b20687d8897-3fabc505fdd377c05ce4557b1bc13545:passed:20051004-194707:0.052219855
T_216mp4_editlists:e67a7baf1427ff34b1bed9bbcc4264ac:passed:20051118-191453:0.106975045
T_217file_identification:580b3da6e30ba3417ad5be64027336b7-85a2a482ec7a7c5ecaa99abef9af3a40-6a3f6e402f80966a5d4ce237784d6a9e-95c6d9f3756349bdb4bcc43382fa7681-b51f69615d6a4b970784b4ffcef95dc7-2f43b435a9811390aefb63e1ad308339-d745c32579925ea9e9ada600b58ae1cb-b82c40794db84b4f4d3060eea310161f-e95c1a1bceaa96a7f8960fcf3f804f7c-e157987587f672611229abf548f89852-a73d58e4a3ace8077f35246e0c5c0401-ff780fd7068657af05b02e8bbfe214b5-ef8adc91fe129e7c68b8ccd065a761b0-e190cacbda1dff702082061c9b9d8176-fbd358ed87fca9961ad06893eaeb6d23-be34343d2478711fafd718fdd2669fca-7d6bd09ee09914a95802edb589842c7d-b5f010d5f85c30c40a17622aa9fdc86d-90cc7bdfc3b3b8965a29ef3f999b450a-b1e60bf1ba3650ba009b7cadacc6f3c8-1c208a69643bae7d277615a6696c7d6e-2c6d22cf6ca8ce6f739d986de38ba6bc:passed:20051209-180815:1.882517588
T_217file_identification:580b3da6e30ba3417ad5be64027336b7-85a2a482ec7a7c5ecaa99abef9af3a40-6a3f6e402f80966a5d4ce237784d6a9e-95c6d9f3756349bdb4bcc43382fa7681-b51f69615d6a4b970784b4ffcef95dc7-2f43b435a9811390aefb63e1ad308339-d745c32579925ea9e9ada600b58ae1cb-b82c40794db84b4f4d3060eea310161f-e95c1a1bceaa96a7f8960fcf3f804f7c-e157987587f672611229abf548f89852-a73d58e4a3ace8077f35246e0c5c0401-ff780fd7068657af05b02e8bbfe214b5-ef8adc91fe129e7c68b8ccd065a761b0-e190cacbda1dff702082061c9b9d8176-fbd358ed87fca9961ad06893eaeb6d23-be34343d2478711fafd718fdd2669fca-7d6bd09ee09914a95802edb589842c7d-b5f010d5f85c30c40a17622aa9fdc86d-90cc7bdfc3b3b8965a29ef3f999b450a-b1e60bf1ba3650ba009b7cadacc6f3c8-1c208a69643bae7d277615a6696c7d6e-2c6d22cf6ca8ce6f739d986de38ba6bc:failed:20051209-180815:1.882517588
T_218theora:80ae79ba3c9141fd3cd8a6effb3558f5-fdb3b8ea8431e0861e4bed5942c8279e:passed:20060428-105054:0.392912102
T_219srt_short_timecodes:86076d76ad6370a6cc52368143afc671:passed:20060926-112658:0.117747192
T_220ass_with_comments_at_start:9711ab190be4e0f223cde362a7ce8c15:passed:20060926-120101:0.382410266
@ -177,7 +177,7 @@ T_328dts_detected_as_ac3:cd86b23eff99847a0f5be45991f00492:passed:20111229-192324
T_329X_timecodes_v2:dadc36ce79c1c4b281f8f1f865746598-049cdc2d9226fac8c61d193d803bfc1f-3720aac3f16b66ec3308ffa7bf913c6e-6469e2522a4b48b7b20bae93f5d9086d-1ff091abfcb0938d6ac7fd0495e899b3-049cdc2d9226fac8c61d193d803bfc1f-d172a9340cbf2802690479e396879d1e-bf76c5886cc7c18cc7e6ee796c3406b4-b3f9d126c31505c22f292a1d2bdffba2-4bd97467fac0ac0b561d68b8b15a79dd:passed:20120105-202451:1.376047868
T_330dts_detection:e52a1d194460b5e7af8cbf25ae3ffa34:passed:20120107-210130:1.935366715
T_331read_buffer_underflow:a1891edde2b28042188f3f0a57847363:passed:20120125-232902:0.322029153
T_332eac3_misdetected_as_avc:642ffe3f13acde0411f004e1cb20f574:passed:20120131-145550:0.208997135
T_332eac3_misdetected_as_avc:642ffe3f13acde0411f004e1cb20f574:failed:20120131-145550:0.208997135
T_333wavpack_with_correction:4b8525ae9d56f0686014b5316762eb70-e33897409384ca5fd8ed5e497f8c3883+37f802510b43b2ab4bd7d8356a7ac606-ok:passed:20120131-164845:0.221105789
T_334mp4_audio_encoder_delay:03982bb594ef2a49c58fed1f0dcfb90a:passed:20120206-100443:0.085778798
T_335ui_locale_cs_CZ:71fab8df9e8e061badc87c06cf36f544-a37e1bdc2b0c026c2970c08841c5e4df:passed:20120206-191406:0.154320123