<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">>Try looking at the documentation in the header files, in this case<br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container">>avcodec.h. It should help you quite a bit.<br><br>Yes, I looked at avcodec.h and could not find what I wanted.  When I was<br>previously discussing the inaccuracy of floating-point numbers and how I wanted<br>to use frame numbers in editing, everyone said I should be using timestamps.<br>Then I complained that timestamps were specified by floating-point numbers<br>which aren't accurate.  Then Nicolas George said something like the timestamps<br>stored internally were exact.  So where are those timestamps stored?<br><br>When I asked how to
 calculate a timestamp as a function of the frame number,<br>the answer was I can't do that.  Instead, I should merely read the timestamp.  Okay,<br>I'm taking the advice.  Where do I read the timestamp from?  Is it stored in<br>AVFrame, AVPacket, the stream, the CodecContext?   It it best_effort_timestamp?<br><br>Thanks.<br><br><br><br></div> </div> </div>  </div></body></html>