ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Thu Jun 16 15:35:26 2016 +0200| [dfbb5de172b3a0373cbead8a966c41f5ba1ae08b] | committer: Michael Niedermayer
tests/api/api-codec-param-test: Do not directly access caps_internal The caps_internal field has moved without major bump and direct access causes crashes, found when testing 3.1 Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfbb5de172b3a0373cbead8a966c41f5ba1ae08b --- tests/api/api-codec-param-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/api-codec-param-test.c b/tests/api/api-codec-param-test.c index fa51964..377a5e9 100644 --- a/tests/api/api-codec-param-test.c +++ b/tests/api/api-codec-param-test.c @@ -50,7 +50,7 @@ static int try_decode_video_frame(AVCodecContext *codec_ctx, AVPacket *pkt, int goto end; } - if (!decode && codec_ctx->codec->caps_internal & FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM) { + if (!decode && avpriv_codec_get_cap_skip_frame_fill_param(codec_ctx->codec)) { codec_ctx->skip_frame = AVDISCARD_ALL; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog