History

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

Michael Niedermayer committed 10 years ago

Commit dfbb5de1 parent 3fd06941 file · +1 −1Browse files

Showing the changes to tests/api/api-codec-param-test.c (1 of 1 file). Show all

Unified · Split

tests/api/api-codec-param-test.c+1−1
@@ -50,7 +50,7 @@ static int try_decode_video_frame(AVCodecContext *codec_ctx, AVPacket *pkt, int · 49 unmodified lines
5050 goto end;
5151 }
5252
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)) {
5454 codec_ctx->skip_frame = AVDISCARD_ALL;
5555 }
5656

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t