add verification on return value
Add const to string parameters in WelsThreadLib
Fix building a logging statement in debug code
Provide a no-op WelsEmms macro if X86_ASM is disabled

This allows always calling this function, reducing the number
of ifdefs in the calling code.
Fix printing an event name for debugging
Clarify a comment in the threading code

Named semaphores are used instead of unnamed semaphores
in the unix codepaths, since unnamed semaphores aren't available
on OS X.
Avoid overflow when populating a struct timespec

When adding the (dwMilliseconds % 1000) * 1000000 part
to ts.tv_nsec, the ts.tv_nsec field can grow larger than one
whole second. Therefore first add all of dwMilliseconds to
the tv_nsec field and add all whole seconds to the tv_sec
field instead - this way we make sure that the tv_nsec field
actually is less than a second.
Remove the broken WelsEventReset function

This function didn't work properly with named semaphores,
which are used in the unix codepaths.

Since it's unused, just remove it instead.
Merge pull request #383 from mstorsjo/remove-unused-broken-function

Remove the broken WelsEventReset function
Merge pull request #381 from mstorsjo/clarify-threading-comment

Clarify a comment in the threading code
Merge pull request #377 from mstorsjo/threadlib-const-str

Add const to string parameters in WelsThreadLib
Merge pull request #380 from mstorsjo/fix-debug-printing

Fix printing an event name for debugging
Merge pull request #378 from mstorsjo/fix-building-debug-code

Fix building a logging statement in debug code
Merge pull request #379 from mstorsjo/simplify-emms-calling

Provide a no-op WelsEmms macro if X86_ASM is disabled
add video format support verification
Merge pull request #382 from mstorsjo/avoid-overflow-in-timespec

Avoid overflow when populating a struct timespec
format update
add checks for spsid and ppsid
Merge pull request #384 from licaiguo/check-spsid-ppsid

add checks for spsid and ppsid
Merge pull request #371 from ruil2/encode_ret

add verification on return value -- review request #128