diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 18:46:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 18:46:00 +0000 |
commit | c895618bb0c9ff2a699544f0a109ffd3871d3536 (patch) | |
tree | ab45fbdc540adcad9cef63194d6a5ccf68037228 /libavcodec/utils.c | |
parent | f986c8e2e5064e69f932c6793207815d4c47c0ee (diff) | |
download | ffmpeg-streaming-c895618bb0c9ff2a699544f0a109ffd3871d3536.zip ffmpeg-streaming-c895618bb0c9ff2a699544f0a109ffd3871d3536.tar.gz |
av_register_hwaccel() from Gwenole Beauchesne.
Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f9b9a30..efa92fd 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1124,3 +1124,14 @@ void ff_log_ask_for_sample(void *avc, const char *msg) "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; +} |