-
Notifications
You must be signed in to change notification settings - Fork 18
Description
How do I seek? Such a simple question, no comprehensive answers at all.
EDIT: Ignore everything below, Demuxer implicitly casts itself to AVFormatContext*.
I need to decode frames at specific timestamps. This is normally done with av_seek_frame. However this wrapper hasn't implemented it.
I tried using the function directly from FFmpeg.Autogen but it requires
AVFormatContext*as an input and theDemuxer.Refis of typeAVFormatContext.My first thought was doing
ffmpeg.av_seek_frame(&(demuxer.Ref), ...)
But of course,Cannot take the address of the given expressionThen I tried
fixed (AVFormatContext* fmt_ctx = &demuxer.Ref)
Same error.I will be honest, I don't really understand fixed statements, why they are even needed or how C# works with pointers and I would really appreciate some help.