Deprecation warning need to be disabled here as we set deprecated fields.
Unified · Split
| @@ -297,14 +297,18 @@ static int request_frame(AVFilterLink *link) · 296 unmodified lines | |||
| 297 | 297 | ||
| 298 | frame->pts = ctx->pts; | 298 | frame->pts = ctx->pts; |
| 299 | frame->duration = 1; | 299 | frame->duration = 1; |
| 300 | frame->flags |= AV_FRAME_FLAG_KEY; | ||
| 301 | frame->flags &= ~AV_FRAME_FLAG_INTERLACED; | ||
| 302 | |||
| 303 | FF_DISABLE_DEPRECATION_WARNINGS | ||
| 300 | #if FF_API_FRAME_KEY | 304 | #if FF_API_FRAME_KEY |
| 301 | frame->key_frame = 1; | 305 | frame->key_frame = 1; |
| 302 | #endif | 306 | #endif |
| 303 | frame->flags |= AV_FRAME_FLAG_KEY; | ||
| 304 | #if FF_API_INTERLACED_FRAME | 307 | #if FF_API_INTERLACED_FRAME |
| 305 | frame->interlaced_frame = 0; | 308 | frame->interlaced_frame = 0; |
| 306 | #endif | 309 | #endif |
| 307 | frame->flags &= ~AV_FRAME_FLAG_INTERLACED; | 310 | FF_ENABLE_DEPRECATION_WARNINGS |
| 311 | |||
| 308 | frame->pict_type = AV_PICTURE_TYPE_I; | 312 | frame->pict_type = AV_PICTURE_TYPE_I; |
| 309 | frame->sample_aspect_ratio = ctx->sar; | 313 | frame->sample_aspect_ratio = ctx->sar; |
| 310 | 314 | ||