diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 18:47:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 18:47:36 +0000 |
commit | 414d9d7f2e6fce2b2c0fe3d072f1bc6b66e5d9ac (patch) | |
tree | 1fe02d3ed5949b3c50d0eae2b116fcbfa36aeab0 /libavcodec/utils.c | |
parent | c895618bb0c9ff2a699544f0a109ffd3871d3536 (diff) | |
download | ffmpeg-414d9d7f2e6fce2b2c0fe3d072f1bc6b66e5d9ac.tar.gz |
av_hwaccel_next() by Gwenole Beauchesne.
Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; +} |