-
- Downloads
pthread_frame: do not run hwaccel decoding asynchronously unless it's safe
Certain hardware decoding APIs are not guaranteed to be thread-safe, so having the user access decoded hardware surfaces while the decoder is running in another thread can cause failures (this is mainly known to happen with DXVA2). For such hwaccels, only allow the decoding thread to run while the user is inside a lavc decode call (avcodec_send_packet/receive_frame).
Showing
- libavcodec/avcodec.h 5 additions, 0 deletionslibavcodec/avcodec.h
- libavcodec/hwaccel.h 24 additions, 0 deletionslibavcodec/hwaccel.h
- libavcodec/pthread_frame.c 46 additions, 6 deletionslibavcodec/pthread_frame.c
- libavcodec/vaapi_h264.c 2 additions, 0 deletionslibavcodec/vaapi_h264.c
- libavcodec/vaapi_mpeg2.c 2 additions, 0 deletionslibavcodec/vaapi_mpeg2.c
- libavcodec/vaapi_mpeg4.c 3 additions, 0 deletionslibavcodec/vaapi_mpeg4.c
- libavcodec/vaapi_vc1.c 3 additions, 0 deletionslibavcodec/vaapi_vc1.c
- libavcodec/vaapi_vp8.c 2 additions, 0 deletionslibavcodec/vaapi_vp8.c
- libavcodec/vdpau_h264.c 2 additions, 0 deletionslibavcodec/vdpau_h264.c
- libavcodec/vdpau_hevc.c 2 additions, 0 deletionslibavcodec/vdpau_hevc.c
- libavcodec/vdpau_mpeg12.c 3 additions, 0 deletionslibavcodec/vdpau_mpeg12.c
- libavcodec/vdpau_mpeg4.c 2 additions, 0 deletionslibavcodec/vdpau_mpeg4.c
- libavcodec/vdpau_vc1.c 3 additions, 0 deletionslibavcodec/vdpau_vc1.c
- libavcodec/version.h 1 addition, 1 deletionlibavcodec/version.h
Loading
Please register or sign in to comment