From f4679c32d8fb3d38738419716ddb7a4526fd7e4e Mon Sep 17 00:00:00 2001 From: austriancoder Date: Mon, 10 Jan 2005 16:07:56 +0000 Subject: some littel fixes --- Makefile | 10 +++++----- dxr3syncbuffer.c | 6 +++--- dxr3syncbuffer.h | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 56e2350..d8ae770 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile,v 1.9 2005/01/05 18:56:40 austriancoder Exp $ +# $Id: Makefile,v 1.10 2005/01/10 16:07:56 austriancoder Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -20,12 +20,12 @@ CXXFLAGS = -O2 -Wall -Woverloaded-virtual ### The directory environment: -DVBDIR = ../../../DVB -VDRDIR = ../../.. -LIBDIR = ../../lib TMPDIR = /tmp -FFMDIR = /usr/local/include/ffmpeg +FFMDIR = /usr/include/ffmpeg EM8300 = /usr/include +DVBDIR = /usr/src/linux +VDRDIR = /usr/include/vdr +LIBDIR = /usr/lib ### Allow user defined options to overwrite defaults: diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c index f2fe80f..e7544ec 100644 --- a/dxr3syncbuffer.c +++ b/dxr3syncbuffer.c @@ -54,8 +54,8 @@ cFixedLengthFrame::~cFixedLengthFrame() // ! setup our frame void cFixedLengthFrame::Init(uint32_t lenght) { - m_length = length; - m_pData = new uint8_t[length]; + m_length = lenght; + m_pData = new uint8_t[lenght]; // allocation ok? if (!m_pData) @@ -125,7 +125,7 @@ cDxr3SyncBuffer::cDxr3SyncBuffer(int frameCount, int frameLength, cDxr3Interface // init our new m_pBuffer; for (int i = 0; i < frameCount; i++) { - m_pBuffer[i].Init(frameLenght); + m_pBuffer[i].Init(frameLength); } // set some default values diff --git a/dxr3syncbuffer.h b/dxr3syncbuffer.h index 3ae5cc9..63c6e1e 100644 --- a/dxr3syncbuffer.h +++ b/dxr3syncbuffer.h @@ -39,10 +39,10 @@ const uint32_t UNKNOWN_ASPECT_RATIO = 0xFFFFFFFF; class cFixedLengthFrame { public: - explicit cFixedLengthFrame(); + cFixedLengthFrame(); ~cFixedLengthFrame(); - void Init(uint32_t lenght); + void Init(uint32_t lenght); void CopyFrame(const uint8_t* pStart, int length, uint32_t pts, eFrameType type); uint8_t* GetData(void); @@ -74,7 +74,7 @@ protected: static uint32_t m_staticAudioDataRate; private: - cFixedLengthFrame(); // you are not allowed to use this constructor +// cFixedLengthFrame(); // you are not allowed to use this constructor cFixedLengthFrame(cFixedLengthFrame&); // no copy constructor }; -- cgit v1.2.3