summaryrefslogtreecommitdiff
path: root/recv.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-09-26 17:06:25 +0200
committerJochen Dolze <vdr@dolze.de>2009-09-26 17:06:25 +0200
commit960085e4f2cf759a61a46cf10e4d027ca8e96214 (patch)
tree4a8731bcbc9b19dd4a8050bf97331f291a48c72a /recv.cpp
parentda52aedb6aa039cd3488b13e63a4648b73e465bf (diff)
downloadvdr-plugin-markad-960085e4f2cf759a61a46cf10e4d027ca8e96214.tar.gz
vdr-plugin-markad-960085e4f2cf759a61a46cf10e4d027ca8e96214.tar.bz2
Added H264 parser from femon
Diffstat (limited to 'recv.cpp')
-rw-r--r--recv.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/recv.cpp b/recv.cpp
index 78d3840..39bdeb7 100644
--- a/recv.cpp
+++ b/recv.cpp
@@ -64,7 +64,7 @@ cMarkAdReceiver::cMarkAdReceiver(int RecvNumber, const char *Filename, cTimer *T
if (macontext.General.VPid.Num)
{
- dsyslog("markad [%i]: using %s-video",recvnumber,useH264 ? "H262": "H264");
+ dsyslog("markad [%i]: using %s-video",recvnumber,useH264 ? "H264": "H262");
video=new cMarkAdVideo(RecvNumber,&macontext);
video_demux = new cMarkAdDemux(RecvNumber);
}
@@ -249,14 +249,6 @@ void cMarkAdReceiver::Action()
uchar *tspkt = frame->Data();
int tslen = frame->Count();
-#if 0
-int w=open("/tmp/test.ts",O_CREAT|O_RDWR|O_APPEND,0644);
-if (w!=-1) {
-write(w,tspkt,tslen);
-close(w);
-}
-#endif
-
while (tslen>0)
{
int len=video_demux->Process(macontext.General.VPid,tspkt,tslen,&pkt,&pktlen);
@@ -268,7 +260,7 @@ close(w);
{
if (pkt)
{
- decoder->FindH262VideoInfos(&macontext,pkt,pktlen);
+ decoder->FindVideoInfos(&macontext,pkt,pktlen);
if (decoder->DecodeVideo(&macontext,pkt,pktlen))
{
mark=video->Process(lastiframe);