summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_rtcd.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2021-12-09 18:34:18 -0800
committerJames Zern <jzern@google.com>2021-12-09 18:37:01 -0800
commit03a81068467076b4ce4a41dafaac9a9e5cc5f01c (patch)
tree84d2d5633bb8548f2ee96437c47886f200ac50f4 /vp9/common/vp9_rtcd.c
parent7fbcee49da63a61feee00147746efa33e31087e8 (diff)
downloadlibvpx-03a81068467076b4ce4a41dafaac9a9e5cc5f01c.tar
libvpx-03a81068467076b4ce4a41dafaac9a9e5cc5f01c.tar.gz
libvpx-03a81068467076b4ce4a41dafaac9a9e5cc5f01c.tar.bz2
libvpx-03a81068467076b4ce4a41dafaac9a9e5cc5f01c.zip
vp[89]_initalize_enc(): protect against multiple invocations
this removes the burden from callers; the rtcd functions are left with a mostly redundant (outside of tests) once() as top-level functions should ensure their constraints are met Change-Id: I5bdbcfa4671c6a1492cfe9c7d886c361c26caaa9
Diffstat (limited to 'vp9/common/vp9_rtcd.c')
-rw-r--r--vp9/common/vp9_rtcd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/vp9/common/vp9_rtcd.c b/vp9/common/vp9_rtcd.c
index d8c870aa3..37762ca15 100644
--- a/vp9/common/vp9_rtcd.c
+++ b/vp9/common/vp9_rtcd.c
@@ -12,8 +12,4 @@
#include "./vp9_rtcd.h"
#include "vpx_ports/vpx_once.h"
-void vp9_rtcd() {
- // TODO(JBB): Remove this once, by insuring that both the encoder and
- // decoder setup functions are protected by once();
- once(setup_rtcd_internal);
-}
+void vp9_rtcd() { once(setup_rtcd_internal); }