Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 117972

Understanding avio_alloc_context

$
0
0

How does the avio_alloc_context function work? Should this function be used only once when starting the stream, or in the main loop?

When I use it only when I open my file of my class, in my drawing function (video to OpenGL texture) in main loop, it shows only the first frame, and then my window closes, indicating that there was an error in the function:

av_read_frame (parameters...);

I have also noticed that the avio_alloc_context function is used to seek a frame of a video. But is this just to open a file, or is it to do it in the main loop?


Viewing all articles
Browse latest Browse all 117972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>