diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-16 09:14:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-13 13:08:57 +0200 |
commit | d13ba3960659fc54a459769d656531ac65ba1511 (patch) | |
tree | fcea4c7743bf8b5ffc7f8d7f210a2ea544c68292 /tests/api/api-codec-param-test.c | |
parent | 19b86db2b32fcd017c6f4f08508f7fb3183f47b4 (diff) | |
download | ffmpeg-d13ba3960659fc54a459769d656531ac65ba1511.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>
(cherry picked from commit d0ee2e3ae6a7b58363b5e1ae518b242d0666f82b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/api/api-codec-param-test.c')
-rw-r--r-- | tests/api/api-codec-param-test.c | 2 |
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; } |