[Live-devel] Data Trimmed problem
Salick
salick at videocells.com
Sun Apr 2 01:19:39 PST 2006
Hello, I've written to subclasses for AMR and H263 sources.
The AMR class works fine, and by using ethereal I see the complete data I'm
sending.
But for the H263Source the first two bytes of the data always get trimmed
for some reason. Why is that?
I included my doGetNextFrame() which looks just like my AMRSource Class.
Note: I'm sending "asd" as the data, but only "d" gets sent
If I send "123456789", only "3456789" gets sent
void CH263ByteSource::doGetNextFrame()
{
SFrameData frame;
unsigned char str[4] = "asd";
m_FrameManager->Add(4, str);
if (m_FrameManager->Read(frame)) //frame read
{
fFrameSize = frame.m_FrameSize;
memcpy(fTo, frame.m_FrameData, fFrameSize);
// Switch to another task, and inform the reader
that he has data:
nextTask() =
envir().taskScheduler().scheduleDelayedTask(0,
(TaskFunc*)FramedSource::afterGetting, this);
}
}
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060402/8cf0af9a/attachment.html
More information about the live-devel
mailing list