<div dir="auto">Agree. However in my case Demuxer is part of a bigger rendering system which is (currently) frame based. So I need to send back frame numbers so the engine knows when to stop demuxing process. In the future it will be changed to time based.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Dec 18, 2024, 14:33 Nicolas George <<a href="mailto:george@nsup.org">george@nsup.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Michael Ivanov (12024-12-18):<br>
> It works correctly, but I am not sure this is the right way to do that and<br>
> that it will work with any fps/time scale. Could someone review this code<br>
> and provide feedback, or an alternative way?<br>
<br>
Most code that tries to generate a frame number proves to be trying to<br>
solve a problem the wrong way. Please explain why you think you need the<br>
frame number.<br>
<br>
Regards,<br>
<br>
-- <br>
  Nicolas George<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank" rel="noreferrer">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank" rel="noreferrer">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div>