mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
openh264: memcmp return value 0 means match
Commit e2aa76db79
introduced version
check guard for OpenH264 binary. There was a boolean error in
memcmp so matching OpenH264 was erroneously rejected.
Fixes #1278
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1219>
This commit is contained in:
parent
851557af20
commit
90f374dd0c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ plugin_init (GstPlugin * plugin)
|
|||
* ABI without changing the SONAME.
|
||||
*/
|
||||
OpenH264Version libver = WelsGetCodecVersion ();
|
||||
if (memcmp (&libver, &g_stCodecVersion, sizeof (libver))) {
|
||||
if (memcmp (&libver, &g_stCodecVersion, sizeof (libver)) == 0) {
|
||||
gst_element_register (plugin, "openh264dec", GST_RANK_MARGINAL,
|
||||
GST_TYPE_OPENH264DEC);
|
||||
gst_element_register (plugin, "openh264enc", GST_RANK_MARGINAL,
|
||||
|
|
Loading…
Reference in a new issue