<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:right;
        direction:rtl;
        unicode-bidi:embed;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1 dir=RTL>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hello,
I've written to subclasses for AMR and H263 sources.</span></font><font size=2
face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>The
AMR class works fine, and by using ethereal I see the complete data I'm sending.
<o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>But
for the H263Source the first two bytes of the data always get trimmed for some
reason. Why is that?</span></font><font size=2 face=Arial><span lang=HE
dir=RTL style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
included my doGetNextFrame() which looks just like my AMRSource Class.</span></font><font
size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:
Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Note:
I'm sending "asd" as the data, but only "d" gets sent</span></font><font
size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:
Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> If
I send "123456789", only "3456789" gets sent</span></font><font
size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:
Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'>void CH263ByteSource::doGetNextFrame()</span></font><font
size=2 color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=LTR></span><font size=2 color="#666699" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#666699'><span dir=LTR></span>{</span></font><font
size=2 color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> SFrameData frame;</span></font><font
size=2 color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> </span></font><font size=2
color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:red'>unsigned char str[4] = "asd";</span></font><font size=2
color=red face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:
Arial;color:red'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span lang=HE dir=RTL
style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> m_FrameManager->Add(4, str);</span></font><font
size=2 color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> </span></font><font size=2
color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> if (m_FrameManager->Read(frame))
//frame read</span></font><font size=2 color="#666699" face=Arial><span
lang=HE dir=RTL style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> { </span></font><font
size=2 color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> </span></font><font
size=2 color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:red'>fFrameSize = frame.m_FrameSize;</span></font><font size=2 color=red
face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:Arial;
color:red'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color=red face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:red'> memcpy(fTo, frame.m_FrameData,
fFrameSize);</span></font><font size=2 color="#666699" face=Arial><span
lang=HE dir=RTL style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span lang=HE dir=RTL
style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span lang=HE dir=RTL
style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> // Switch to another
task, and inform the reader that he has data:</span></font><font size=2
color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> nextTask()
= envir().taskScheduler().scheduleDelayedTask(0,</span></font><font size=2
color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> (TaskFunc*)FramedSource::afterGetting,
this);</span></font><font size=2 color="#666699" face=Arial><span lang=HE
dir=RTL style='font-size:10.0pt;font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'> }</span></font><font size=2
color="#666699" face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=LTR></span><font size=2 color="#666699" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#666699'><span dir=LTR></span>}<o:p></o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color="#666699" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#666699'><o:p> </o:p></span></font></p>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'>Thanks.<o:p></o:p></span></font></p>
</div>
</body>
</html>