summaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-16 15:35:26 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-20 00:08:45 +0200
commitdfbb5de172b3a0373cbead8a966c41f5ba1ae08b (patch)
treed2117b9ea5d40e31cef9e86cc0d5d78f15f14c39 /tests/api
parent3fd0694a119a03a0b406a28e2e2942eefc44bd30 (diff)
downloadffmpeg-dfbb5de172b3a0373cbead8a966c41f5ba1ae08b.tar.gz
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 <michael@niedermayer.cc>
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/api-codec-param-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/api-codec-param-test.c b/tests/api/api-codec-param-test.c
index fa51964bbd..377a5e9c79 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;
}