mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3: experimental h.264 playback fix
Origin commit data
------------------
Branch: master
Commit: 443adcf6d0
Author: martii <m4rtii@gmx.de>
Date: 2013-07-14 (Sun, 14 Jul 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -117,7 +117,10 @@ static int writeData(void* _call)
|
|||||||
unsigned int TimeDelta;
|
unsigned int TimeDelta;
|
||||||
unsigned int TimeScale;
|
unsigned int TimeScale;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
#if 0
|
||||||
|
// This should at least be set to 1 in reset(), but seems to make playback unreliable. Disabled for now. --martii
|
||||||
static int NoOtherBeginningFound = 1;
|
static int NoOtherBeginningFound = 1;
|
||||||
|
#endif
|
||||||
int ic = 0;
|
int ic = 0;
|
||||||
struct iovec iov[128];
|
struct iovec iov[128];
|
||||||
h264_printf(10, "\n");
|
h264_printf(10, "\n");
|
||||||
@@ -146,6 +149,8 @@ static int writeData(void* _call)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// This seems to make playback unreliable. Disabled for now. --martii
|
||||||
if((call->data[0] == 0x00 && call->data[1] == 0x00 && call->data[2] == 0x00 && call->data[3] == 0x01) ||
|
if((call->data[0] == 0x00 && call->data[1] == 0x00 && call->data[2] == 0x00 && call->data[3] == 0x01) ||
|
||||||
(call->data[0] == 0x00 && call->data[1] == 0x00 && call->data[2] == 0x01 && NoOtherBeginningFound) ||
|
(call->data[0] == 0x00 && call->data[1] == 0x00 && call->data[2] == 0x01 && NoOtherBeginningFound) ||
|
||||||
(call->data[0] == 0xff && call->data[1] == 0xff && call->data[2] == 0xff && call->data[3] == 0xff))
|
(call->data[0] == 0xff && call->data[1] == 0xff && call->data[2] == 0xff && call->data[3] == 0xff))
|
||||||
@@ -171,6 +176,7 @@ static int writeData(void* _call)
|
|||||||
return writev(call->fd, iov, ic);
|
return writev(call->fd, iov, ic);
|
||||||
}
|
}
|
||||||
NoOtherBeginningFound = 0;
|
NoOtherBeginningFound = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (initialHeader)
|
if (initialHeader)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user