libeplayer3: let writers use AVPacket

Origin commit data
------------------
Branch: master
Commit: 1c380d1167
Author: martii <m4rtii@gmx.de>
Date: 2014-04-05 (Sat, 05 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-05 16:17:57 +02:00
parent ccd2c57a83
commit aa19fb8024
15 changed files with 77 additions and 110 deletions

View File

@@ -109,7 +109,7 @@ static int writeData(WriterAVCallData_t *call)
return 0;
}
if ((call->data == NULL) || (call->len <= 0)) {
if ((call->packet->data == NULL) || (call->packet->size <= 0)) {
divx_err("parsing NULL Data. ignoring...\n");
return 0;
}
@@ -147,7 +147,7 @@ static int writeData(WriterAVCallData_t *call)
int ic = 0;
iov[ic].iov_base = PesHeader;
iov[ic++].iov_len =
InsertPesHeader(PesHeader, call->len, MPEG_VIDEO_PES_START_CODE,
InsertPesHeader(PesHeader, call->packet->size, MPEG_VIDEO_PES_START_CODE,
call->Pts, FakeStartCode);
iov[ic].iov_base = FakeHeaders;
iov[ic++].iov_len = FakeHeaderLength;
@@ -158,8 +158,8 @@ static int writeData(WriterAVCallData_t *call)
initialHeader = 0;
}
iov[ic].iov_base = call->data;
iov[ic++].iov_len = call->len;
iov[ic].iov_base = call->packet->data;
iov[ic++].iov_len = call->packet->size;
int len = writev(call->fd, iov, ic);