# HG changeset patch # User michael # Date 1235501160 0 # Node ID c7d783120b990255dfb3bf0915c01d6980411e1a # Parent e10f554d8fb74e37ca62b22f04b533372f11efee av_register_hwaccel() from Gwenole Beauchesne. diff -r e10f554d8fb7 -r c7d783120b99 utils.c --- a/utils.c Tue Feb 24 18:39:42 2009 +0000 +++ b/utils.c Tue Feb 24 18:46:00 2009 +0000 @@ -1124,3 +1124,14 @@ "of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ " "and contact the ffmpeg-devel mailing list.\n"); } + +static AVHWAccel *first_hwaccel = NULL; + +void av_register_hwaccel(AVHWAccel *hwaccel) +{ + AVHWAccel **p = &first_hwaccel; + while (*p) + p = &(*p)->next; + *p = hwaccel; + hwaccel->next = NULL; +}