OSDN Git Service

avcodec/utils: av_register_codec & hwaccel() that work in O(1) time
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Dec 2013 02:19:12 +0000 (03:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Dec 2013 00:06:34 +0000 (01:06 +0100)
commitec464c96831ac81329187013c35a9b0a4df6b406
treed5d73178cf968ca555440921ece424e5f3eaab21
parent196f7da7c81814de7883c8b33c7d3866f7cac687
avcodec/utils: av_register_codec & hwaccel() that work in O(1) time

Its possible to implement this with a few lines less code but it then
would flip the order of the list and require registration of external
codecs to be done first, also it could break user applications due to
this. Thus to maintain ABI this slighty more complex solution is
used.

Reviewed-by: Stefano Sabatini
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c