video-event: Update the running times in the force-keyunit events from the pad offsets
oggdemux: do not dereference NULL pad in warning message

Coverity 1197695
oggmux: test for failure to return tag

It should really not happen unless the tag list it corrupt,
but the API returns a failure code so we may as well use it.

Coverity 1139595
oggstream: remove NULL test after dereference

And add NULLness asserts at top of function. The only call
to this passes local variable pointers, so non NULL.

Coverity 206375
oggstream: fix a few left shifts operations on 32 bits cast to 64 bits

This should not cause any actual bug since Theora and Daala have
a maximum shift of 31, and a packet duration of 2^31 seems very
implausible. But it fixes:

Coverity 1139804, 1139803, 1139802
theoraenc: fix comparison to unset timestamp

Also rejects negative timestamps that aren't GST_CLOCK_TIME_NONE.

Coverity 1139797
audiobasesink: avoid possible sample count overflow

At 48 kHz, 2<<31 samples is reached before 13 hours so it
sounds plausible this would be hit.

Coverity 1139800, 1139801
pbutils: descriptions: default to systemstream=false for partial video/mpeg caps

Assume systemstream=false for video/mpeg caps where that field
is missing.
audiocdsrc: guard aginst overflow

An audio CD may contain about a tenth of the samples 32 bit can
represent, so it doesn't seem likely this will be hit in practice.

Coverity 1139805
sdpmessage: fix multi statement macros

Wasn't playing nice with an if statement below.

Coverity 1139767
videometa: fix texture_type memcpy size

Coverity 1139589, 1139588
video-overlay-composition: guard against NULL pointer dereference on error

If gst_video_overlay_rectangle_apply_global_alpha is called with
a rectangle with unsuitable alpha, expanding the alpha plane will
fail, and thus lead to dereferencing a NULL src pointer. It's not
certain this will happen in practice, as the function is static
and callers might ensure suitable alpha before calling, but there
is no apparent explicit such check.
Add prologue asserts for proper alpha to explicitely prevent this.

Coverity 1139707
audioresample: reject 0 denominator when creating resampler

Coverity 1195140, 1195139, 1195138
encodebin: guard against pathological NULL dereference

Coverity 1139798
encodebin: guard against gst_pad_get_peer returning NULL

If it does, the pad may be leaked if it's a request pad, though.

Coverity 1139799
decodebin: consider "no demuxer" case to not have dynamic pads

This fixes a possible NULL dereference.

Coverity 1195146
typefind: remove pointless checks for data being NULL

It was already checked in an early out, and as it's only
incremented for at most the size of the passed buffer, it
can only become NULL in an address wraparound.

While there, don't cast away const on a pointer.

Coverity 1139845
videotestsrc: bail out on unsupported caps

This avoids using uninitialized data (and properly rejects caps).

Coverity 1139898
xvimage: remove dead code

matching_attr can not be NULL here, we've tested that away a few
lines beforehand.

Coverity 1139655
oggstream: use G_GUINT64_CONSTANT instead of ll suffix

Thanks slomo for pointing out it's not standard.