mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer3/output/writer/: remove PesHeader memset (both wrong and unneeded)
This commit is contained in:
@@ -121,8 +121,6 @@ static int writeData(void* _call)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset (PesHeader, '0', PES_AUDIO_HEADER_SIZE);
|
|
||||||
|
|
||||||
// #define DO_BYTESWAP
|
// #define DO_BYTESWAP
|
||||||
#ifdef DO_BYTESWAP
|
#ifdef DO_BYTESWAP
|
||||||
unsigned char *Data = (unsigned char *) malloc(call->len);
|
unsigned char *Data = (unsigned char *) malloc(call->len);
|
||||||
|
@@ -230,7 +230,6 @@ static int writeData(void* _call)
|
|||||||
vc1_printf(20, "PacketLength=%d, Remaining=%d, Position=%d\n", PacketLength, Remaining, Position);
|
vc1_printf(20, "PacketLength=%d, Remaining=%d, Position=%d\n", PacketLength, Remaining, Position);
|
||||||
|
|
||||||
unsigned char PesHeader[PES_MAX_HEADER_SIZE];
|
unsigned char PesHeader[PES_MAX_HEADER_SIZE];
|
||||||
memset (PesHeader, '0', PES_MAX_HEADER_SIZE);
|
|
||||||
int HeaderLength = InsertPesHeader (PesHeader, PacketLength, VC1_VIDEO_PES_START_CODE, call->Pts, 0);
|
int HeaderLength = InsertPesHeader (PesHeader, PacketLength, VC1_VIDEO_PES_START_CODE, call->Pts, 0);
|
||||||
|
|
||||||
if(insertSampleHeader) {
|
if(insertSampleHeader) {
|
||||||
|
@@ -215,7 +215,6 @@ static int writeData(void* _call)
|
|||||||
wmv_printf(20, "PacketLength=%d, Remaining=%d, Position=%d\n", PacketLength, Remaining, Position);
|
wmv_printf(20, "PacketLength=%d, Remaining=%d, Position=%d\n", PacketLength, Remaining, Position);
|
||||||
|
|
||||||
unsigned char PesHeader[PES_MAX_HEADER_SIZE];
|
unsigned char PesHeader[PES_MAX_HEADER_SIZE];
|
||||||
memset (PesHeader, '0', PES_MAX_HEADER_SIZE);
|
|
||||||
int HeaderLength = InsertPesHeader (PesHeader, PacketLength, VC1_VIDEO_PES_START_CODE, call->Pts, 0);
|
int HeaderLength = InsertPesHeader (PesHeader, PacketLength, VC1_VIDEO_PES_START_CODE, call->Pts, 0);
|
||||||
|
|
||||||
if(insertSampleHeader) {
|
if(insertSampleHeader) {
|
||||||
|
Reference in New Issue
Block a user