cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Jelly
Newbie
Newbie
155 Views
Registered: ‎07-07-2021

How to flush and continue decoding after seek happen

When a seek occurs in my app, it will jump to a new location in the video file to read the packet and decode it. What to do with the decoder at this time?

In FFMPEG, if a seek operation occurs, avcodec_flush_buffers needs to be called to reset the internal decoder state and flush internal buffers.

I found "AL_Decoder_Flush" function, but it seems only to be called at the end of the stream. . .

Tags (2)
0 Kudos
0 Replies