mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer3: cleanup AVFormatContext propagation to writers
This commit is contained in:
@@ -58,7 +58,7 @@ class WriterWMV : public Writer
|
||||
private:
|
||||
bool initialHeader;
|
||||
public:
|
||||
bool Write(int fd, AVFormatContext *avfc, AVStream *stream, AVPacket *packet, int64_t pts);
|
||||
bool Write(int fd, AVStream *stream, AVPacket *packet, int64_t pts);
|
||||
void Init();
|
||||
WriterWMV();
|
||||
};
|
||||
@@ -68,7 +68,7 @@ void WriterWMV::Init()
|
||||
initialHeader = true;
|
||||
}
|
||||
|
||||
bool WriterWMV::Write(int fd, AVFormatContext * /* avfc */, AVStream *stream, AVPacket *packet, int64_t pts)
|
||||
bool WriterWMV::Write(int fd, AVStream *stream, AVPacket *packet, int64_t pts)
|
||||
{
|
||||
if (fd < 0 || !packet || !packet->data)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user