Backport of "libs: decoder: h264, h265: fix g_return_val_if_fail() missuse" into 1.16
Backport of !175 (merged) "libs: decoder: h264, h265: fix g_return_val_if_fail() missuse".
Commits:
- f67ec886 libs: decoder: h264, h266: fix g_return_val_if_fail() missuse