mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
Enable aac writer and use resmpling for some AAC streams thx Taapat and technik
This commit is contained in:
@@ -49,7 +49,7 @@ class Output
|
||||
int audiofd;
|
||||
Writer *videoWriter, *audioWriter;
|
||||
Mutex audioMutex, videoMutex;
|
||||
AVStream *audioStream, *videoStream;
|
||||
Track *audioTrack, *videoTrack;
|
||||
Player *player;
|
||||
public:
|
||||
Output();
|
||||
@@ -70,8 +70,8 @@ class Output
|
||||
bool ClearVideo();
|
||||
bool GetPts(int64_t &pts);
|
||||
bool GetFrameCount(int64_t &framecount);
|
||||
bool SwitchAudio(AVStream *stream);
|
||||
bool SwitchVideo(AVStream *stream);
|
||||
bool SwitchAudio(Track *track);
|
||||
bool SwitchVideo(Track *track);
|
||||
bool Write(AVStream *stream, AVPacket *packet, int64_t Pts);
|
||||
};
|
||||
|
||||
|
@@ -49,7 +49,7 @@ class Writer
|
||||
static void Register(Writer *w, enum AVCodecID id, audio_encoding_t encoding);
|
||||
static video_encoding_t GetVideoEncoding(enum AVCodecID id);
|
||||
static audio_encoding_t GetAudioEncoding(enum AVCodecID id);
|
||||
static Writer *GetWriter(enum AVCodecID id, enum AVMediaType codec_type);
|
||||
static Writer *GetWriter(enum AVCodecID id, enum AVMediaType codec_type, int track_type);
|
||||
|
||||
virtual void Init(int _fd, AVStream * /*stream*/, Player *_player ) { fd = _fd; player = _player; }
|
||||
virtual bool Write(AVPacket *packet, int64_t pts);
|
||||
|
Reference in New Issue
Block a user