diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-03-05 02:57:32 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-03-21 02:15:43 +0300 |
commit | 16a163b55a6558ed05702b91cc0777987295ef21 (patch) | |
tree | fd45b31534728365332561fce0ddfce9f169926c /libavcodec/pthread_frame.c | |
parent | 62a1ef9f26c654a3e988aa465c4ac1d776c4c356 (diff) |
lavc: Add hwaccel_flags field to AVCodecContext
This "reuses" the flags introduced for the av_vdpau_bind_context() API
function, and makes them available to all hwaccels. This does not affect
the current vdpau API, as av_vdpau_bind_context() should obviously
override the AVCodecContext.hwaccel_flags flags for the sake of
compatibility.
Diffstat (limited to 'libavcodec/pthread_frame.c')
-rw-r--r-- | libavcodec/pthread_frame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index f3a74c0bd8..65a04d8e90 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -270,6 +270,8 @@ FF_ENABLE_DEPRECATION_WARNINGS return AVERROR(ENOMEM); } } + + dst->hwaccel_flags = src->hwaccel_flags; } if (for_user) { |