Commits on Source (2)
-
If the va module succeed to open but is identified as unusable before the end of FFmpeg getFormat callback, the module may have to do some cleanups in the AVCodecContext. the close callback will be called with a NULL AVCodecContext outside the getFormat callback as the AVCodecContext ownership is transferred to FFmpeg
1d43024f -
The typical case is an application that use vgl callback with a GLX context, vaapi decoder will initiliaze properly and provide a hw_frames_ctx context, but due to the lack of interop, the decoder won't be usable and fallback to the sw decoder, but hw_frames_ctx will still be set and will cause a crash later on.
0654e138
Showing
- modules/codec/avcodec/d3d11va.c 5 additions, 2 deletionsmodules/codec/avcodec/d3d11va.c
- modules/codec/avcodec/dxva2.c 5 additions, 2 deletionsmodules/codec/avcodec/dxva2.c
- modules/codec/avcodec/va.c 2 additions, 2 deletionsmodules/codec/avcodec/va.c
- modules/codec/avcodec/va.h 4 additions, 2 deletionsmodules/codec/avcodec/va.h
- modules/codec/avcodec/vaapi.c 3 additions, 1 deletionmodules/codec/avcodec/vaapi.c
- modules/codec/avcodec/video.c 3 additions, 4 deletionsmodules/codec/avcodec/video.c
- modules/hw/vdpau/avcodec.c 4 additions, 2 deletionsmodules/hw/vdpau/avcodec.c