我正在编写android视频播放器。到目前为止,在av_read_frame和avcodec_decode_video2的帮助下,我能够捕获帧,并更新到SDL2.0。我关注了dranger tutorial02.c 。
Sudo代码是:
while (1)
{
1. Read packet
2. check if video frame; if not Go to Step 3.
2.1 if video frame, then update with SDL_UpdateYUVTexture,