<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><SPAN style="RIGHT: auto">
<DIV style="RIGHT: auto">
<DIV style="RIGHT: auto">>And issue is probably withing avi container as it<BR clear=none>>may not add every frame into index table.<BR clear=none>>And when seeking you never check if returned packet actually is right<BR clear=none>>one that you need.<BR style="RIGHT: auto" clear=none>><BR clear=none>>Or it could be bug in your code how you seek in file, etc...</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"> </DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">Sorry for the top post (again).  The problem is Yahoo email.  Anyway here</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">is the same last message.</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"> </DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">I did a rewrite of my code and it now works.  But I don't know why.</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">I modified the demuxing.c example so that it seeks to frame 0, calls</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">decode_packet, seeks to frame 10, calls decode_packet, etc.  I</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">seek to every 10th frame and call decode_packet().  I also</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">modified decode_packet() so that it writes an output file whenever <BR clear=none></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">'got_frame' is non-zero.  For the first four seeks (frame 0, 10, 20, 30),</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">'got_frame' is NULL and no output image files are written.  Then,</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">when I seek to frame 40, the output file for frame 0 is written.  When I seek to</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">60, the output for frame 10 is written.  When I seek to frame 60, the output</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">for frame 20 is written, etc.  Eventually, the 'flush cached frames' loop is</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">entered and the final files are written.</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"><BR clear=none></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">Does this make sense or sound familiar to anyone?  What is happening here?<BR clear=none>Does this have anything to do with cached frames?  I've asked before what 'cached</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">frames' are but nobody answered.  Does anyone understand this?</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"><BR clear=none></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">Also, none of the above oddness happens if I use AVI files encoded with <BR clear=none></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px">no codec or with lossless JPEG, or a few other codecs.</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"> </DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"><VAR id=yui-ie-cursor></VAR> </DIV></DIV></SPAN></div></body></html>