AVC/HEVC ES packetizers: cleanup after simplification

This commit is contained in:
Moritz Bunkus 2021-08-17 23:38:46 +02:00
parent b9b94d0149
commit d3c9e83bfc
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 2 additions and 15 deletions

View File

@ -13,19 +13,12 @@
#include "common/common_pch.h"
#include <matroska/KaxTracks.h>
#include "common/avc/es_parser.h"
#include "common/codec.h"
#include "common/hacks.h"
#include "common/mpeg.h"
#include "merge/connection_checks.h"
#include "merge/generic_reader.h"
#include "merge/output_control.h"
#include "output/p_avc_es.h"
using namespace libmatroska;
avc_es_video_packetizer_c::
avc_es_video_packetizer_c(generic_reader_c *p_reader,
track_info_c &p_ti)
@ -54,7 +47,7 @@ avc_es_video_packetizer_c::check_if_default_duration_available()
connection_result_e
avc_es_video_packetizer_c::can_connect_to(generic_packetizer_c *src,
std::string &error_message) {
avc_es_video_packetizer_c *vsrc = dynamic_cast<avc_es_video_packetizer_c *>(src);
auto *vsrc = dynamic_cast<avc_es_video_packetizer_c *>(src);
if (!vsrc)
return CAN_CONNECT_NO_FORMAT;

View File

@ -12,18 +12,12 @@
#include "common/common_pch.h"
#include <matroska/KaxTracks.h>
#include "common/codec.h"
#include "common/hacks.h"
#include "common/hevc/util.h"
#include "common/mpeg.h"
#include "common/hevc/es_parser.h"
#include "merge/connection_checks.h"
#include "merge/output_control.h"
#include "output/p_hevc_es.h"
using namespace libmatroska;
hevc_es_video_packetizer_c::hevc_es_video_packetizer_c(generic_reader_c *p_reader,
track_info_c &p_ti)
: avc_hevc_es_video_packetizer_c{p_reader, p_ti, "hevc", std::unique_ptr<mtx::avc_hevc::es_parser_c>(new mtx::hevc::es_parser_c)}