libeplayer3/writer: implement decoder flushing

Origin commit data
------------------
Branch: master
Commit: 87167a7f5d
Author: martii <m4rtii@gmx.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-27 12:45:15 +02:00
parent a477c474a8
commit 78b7e4018e
13 changed files with 114 additions and 71 deletions

View File

@@ -42,7 +42,7 @@ class WriterDTS : public Writer
bool WriterDTS::Write(int fd, AVFormatContext * /* avfc */, AVStream * /* stream */, AVPacket *packet, int64_t pts)
{
if (fd < 0 || !packet)
if (fd < 0 || !packet || !packet->data)
return false;
uint8_t PesHeader[PES_AUDIO_HEADER_SIZE];