Unified code style (#2137)

This commit is contained in:
老衲不出家
2022-12-02 14:43:06 +08:00
committed by GitHub
parent a12b7c8021
commit f05a9501fa
62 changed files with 166 additions and 149 deletions

View File

@@ -205,7 +205,7 @@ private:
*/
class Metadata : public CodecInfo{
public:
typedef std::shared_ptr<Metadata> Ptr;
using Ptr = std::shared_ptr<Metadata>;
Metadata():_metadata(AMF_OBJECT){}
virtual ~Metadata(){}
@@ -223,7 +223,7 @@ protected:
*/
class TitleMeta : public Metadata{
public:
typedef std::shared_ptr<TitleMeta> Ptr;
using Ptr = std::shared_ptr<TitleMeta>;
TitleMeta(float dur_sec = 0,
size_t fileSize = 0,
@@ -236,7 +236,7 @@ public:
class VideoMeta : public Metadata{
public:
typedef std::shared_ptr<VideoMeta> Ptr;
using Ptr = std::shared_ptr<VideoMeta>;
VideoMeta(const VideoTrack::Ptr &video);
virtual ~VideoMeta(){}
@@ -250,7 +250,7 @@ private:
class AudioMeta : public Metadata{
public:
typedef std::shared_ptr<AudioMeta> Ptr;
using Ptr = std::shared_ptr<AudioMeta>;
AudioMeta(const AudioTrack::Ptr &audio);