diff --git a/libavcodec/utils.c b/libavcodec/utils.c index efa92fdb9b..cd4cbde374 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1135,3 +1135,8 @@ void av_register_hwaccel(AVHWAccel *hwaccel) *p = hwaccel; hwaccel->next = NULL; } + +AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel) +{ + return hwaccel ? hwaccel->next : first_hwaccel; +}