<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 18.07.2013 14:42, schrieb James
      Board:<br>
    </div>
    <blockquote
      cite="mid:1374151353.85762.YahooMailNeo@web163902.mail.gq1.yahoo.com"
      type="cite">
      <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 the doc/examples programs
          compiled and running.  I use </div>
        <div style="RIGHT: auto">the program demuxing.c to decode an AVI
          file.  From the source </div>
        <div style="RIGHT: auto">code, it looks it calls its own
          subroutine decode_packet() to decode</div>
        <div style="RIGHT: auto">the next video or audio packet, and
          that subroutine calls</div>
        <div style="RIGHT: auto">avcodec_ecode_video2()to decode the
          next frame.  But they all decode</div>
        <div style="RIGHT: auto">sequential frames.  How can I decode an
          arbitrary frame in the</div>
        <div style="RIGHT: auto">video stream?</div>
      </div>
    </blockquote>
    You can use avformat_seek_file() followed by avcodec_flush_buffers()
    before av_read_frame() to jump to an arbitrary position in the
    Stream.<br>
    <br>
    <br>
    <blockquote
      cite="mid:1374151353.85762.YahooMailNeo@web163902.mail.gq1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="RIGHT: auto"><var id="yui-ie-cursor"></var> </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>