Message ID | 7f293c57-3081-746a-3ea6-f72db194623c@jkqxz.net |
---|---|
State | Accepted |
Commit | c2bebfc8012821a2a22b64cae9e3cdea0f15792c |
Headers | show |
On Fri, Mar 31, 2017 at 12:04 AM, Mark Thompson <sw@jkqxz.net> wrote: > This is required by the VP9 hwaccels (both DXVA2 and VAAPI) when > threads are enabled. > --- > libavcodec/pthread_frame.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c > index 5b5f5fb289..4e1ad9d686 100644 > --- a/libavcodec/pthread_frame.c > +++ b/libavcodec/pthread_frame.c > @@ -250,6 +250,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, > dst->width = src->width; > dst->height = src->height; > dst->pix_fmt = src->pix_fmt; > + dst->sw_pix_fmt = src->sw_pix_fmt; > > dst->coded_width = src->coded_width; > dst->coded_height = src->coded_height; > -- > 2.11.0 > I can confirm that this fixes DXVA2 VP9 decoding with threads on. - Hendrik
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 5b5f5fb289..4e1ad9d686 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -250,6 +250,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, dst->width = src->width; dst->height = src->height; dst->pix_fmt = src->pix_fmt; + dst->sw_pix_fmt = src->sw_pix_fmt; dst->coded_width = src->coded_width; dst->coded_height = src->coded_height;