<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto">>I have an libAV program that decodes every 24-th frame.  This is for<BR>>a video editor so I can easily seek forward in the video, rather than<BR>>play all frames.<BR><BR>>If the input file is uncompressed AVI, then this works well.<BR>>However, if I compress the video with ffvhuff or huffvuy, then whenever I<BR>>seek forward 24 frames, the previous 12 frames are first decoded.  For example,<BR>>If I seek from frame 0 to 24 to 72 to 96, when I try to decode frame 96,<BR>>I first get frame 73, 74, 75, 76, 77, .... frame 83, then it decodes frame<BR>>96.<BR><BR>>This problem only occurs with ffvhuff, or huffyuv.  Lossless jpeg doesn't have the<BR>>problem or any of the other lossless codecs I tried.  <BR><BR>Does my question make sense to anyone? 
 Or am I doing something very wrong</div>
<div style="RIGHT: auto">with libav and seeking?  Has anyone seen this behavior before when you seek to</div>
<div style="RIGHT: auto">position N in a file, but the first few frames that get decoded are lower than N?</div>
<div style="RIGHT: auto">Is there a better way?<BR style="RIGHT: auto"></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto">Does this have anything to do with cached frames, or is that another issue?</div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div></div></body></html>