# ffmpeg_sdl_player **Repository Path**: jsjxsy/ffmpeg_sdl_player ## Basic Information - **Project Name**: ffmpeg_sdl_player - **Description**: ffmpeg7.0+sdl2.x实现pc端播放器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-07 - **Last Updated**: 2024-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1. sdl+ffmpeg 只需要导入 libSDL2-2.0.0.dylib MAC引用SDL2 https://www.jianshu.com/p/d56a53a51df8 2. 看messages中编译错误就知道可能什么问题了 3. vs->texture = texture; vs->avCtx = ctx; vs->pkt = pkt; vs->frame = frame; 没有分配空间就导致错误 4. ffmpeg4.4版本太旧 ffmpeg5.0做了较大的改动