You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
Merge commit '319424d25c53f82b87187ce03ed984d438f1bee6'
* commit '319424d25c53f82b87187ce03ed984d438f1bee6': vdpau: add helper for VDPAU to libav error codes conversion Conflicts: libavcodec/vdpau.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -38,6 +38,30 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
static int vdpau_error(VdpStatus status)
|
||||||
|
{
|
||||||
|
switch (status) {
|
||||||
|
case VDP_STATUS_OK:
|
||||||
|
return 0;
|
||||||
|
case VDP_STATUS_NO_IMPLEMENTATION:
|
||||||
|
return AVERROR(ENOSYS);
|
||||||
|
case VDP_STATUS_DISPLAY_PREEMPTED:
|
||||||
|
return AVERROR(EIO);
|
||||||
|
case VDP_STATUS_INVALID_HANDLE:
|
||||||
|
return AVERROR(EBADF);
|
||||||
|
case VDP_STATUS_INVALID_POINTER:
|
||||||
|
return AVERROR(EFAULT);
|
||||||
|
case VDP_STATUS_RESOURCES:
|
||||||
|
return AVERROR(ENOBUFS);
|
||||||
|
case VDP_STATUS_HANDLE_DEVICE_MISMATCH:
|
||||||
|
return AVERROR(EXDEV);
|
||||||
|
case VDP_STATUS_ERROR:
|
||||||
|
return AVERROR(EIO);
|
||||||
|
default:
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AVVDPAUContext *av_alloc_vdpaucontext(void)
|
AVVDPAUContext *av_alloc_vdpaucontext(void)
|
||||||
{
|
{
|
||||||
return av_vdpau_alloc_context();
|
return av_vdpau_alloc_context();
|
||||||
|
Reference in New Issue
Block a user