The caps_internal field has moved without major bump and direct access causes crashes, found when testing 3.1
Unified · Split
| @@ -50,7 +50,7 @@ static int try_decode_video_frame(AVCodecContext *codec_ctx, AVPacket *pkt, int · 49 unmodified lines | ||
| 50 | 50 | goto end; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | − if (!decode && codec_ctx->codec->caps_internal & FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM) { | |
| 53 | + if (!decode && avpriv_codec_get_cap_skip_frame_fill_param(codec_ctx->codec)) { | |
| 54 | 54 | codec_ctx->skip_frame = AVDISCARD_ALL; |
| 55 | 55 | } |
| 56 | 56 | |