Mercurial > libavcodec.hg
diff utils.c @ 9030:c7d783120b99 libavcodec
av_register_hwaccel() from Gwenole Beauchesne.
author | michael |
---|---|
date | Tue, 24 Feb 2009 18:46:00 +0000 |
parents | 1de11a984fc6 |
children | 62f346579c36 |
line wrap: on
line diff
--- 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; +}