<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 03/08/13 12:41, Gonzalo Garramuno
      wrote:<br>
    </div>
    <blockquote cite="mid:51FD24C4.4080201@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Sorry.  They are autogenerated.  There's a generation of pts in
      the following code (taken from the examples):<br>
      <br>
           audio_time += audio_st->pts.val *
      av_q2d(audio_st->time_base);<br>
      <br>
      <br>
    </blockquote>
    I apologize.  The above should be:<br>
    <br>
      audio_time = audio_st->pts.val *
    av_q2d(audio_st->time_base);<br>
      video_time = video_st->pts.val *
    av_q2d(video_st->time_base);<br>
      while ( audio_time < video_time )<br>
      {<br>
         write_audio_frame(oc, audio_st, img);<br>
         audio_time = audio_st->pts.val *
    av_q2d(audio_st->time_base);<br>
       }<br>
       write_video_frame( oc, video_st, img );<br>
    <br>
    where img is the class container for audio and video.<br>
    <br>
  </body>
</html>