Close the audio codec before closing the format context

Closes #127.
Document the lifetime of FFMS_Frame

There was an offhand mention that the frames are owned by the video
source in the sample code, but not in the obvious place to look for such
things.

Closes #130.
Remove invalid use of assert

The value is checked directly under it, and this is an entirely
valid use-case.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Change C-style includes to proper C++ includes

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Merge pull request #123 from dwbuiten/miscfix

Misc Fixes / Changes
vapoursource: Remove unsued variable

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Merge pull request #132 from dwbuiten/static_analysis

vapoursource: Remove unsued variable
vapoursource: Provide _AbsoluteTime metadata

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
utils: Fix leak of OptionMapper impl member

Fixes CID #1109580.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
wave64writer: Fix low-precision arithmetic

This was usng 32-bit precision arithmetic instead of the
intended 64-bit precision.

Fixes CID #1109583.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
videoindexer: Initalized LocalFrame in constructor

Fixes CID #1109586.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
utils: Remove unreachable exception

Fixes CID #1109590.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
stdiostream: Fix unhandled ftello failures

Fixes CIDs #1109579 & #1109582.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
utils: Check if (re-)opening the codec fails

Fixes CID #1109578.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
audiosource: Check if we reopened the resample context properly

Fixes CID #1109577.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
lavfvideo: Initialize DummyPTS and DummyPos

It has no pratcical effect, but it removes the use of
uninitialized data.

Fixes CID #1109584.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Merge pull request #134 from dwbuiten/coverity

Coverity Fixes
Change FFMS_ID from H265 to HEVC to be consistent.

There is no confusion over whether there'll be a split between
MPEG and ITU-T names, since FFmpeg moved to using 'HEVC' also.
Remove AvisynthPluginInit2 from the C-plugin.

The kind of use cases this was meant for probably shouldn't be
encouraged. It also made AviSynth+ not detect the C interface init
prior to its interface init check priority being rearranged so that
the C init comes before 2.5's.
Make 'ffms2' the library basename to match the master branch.

Previously, it was 'ffms' with the '2' added by appending the
value of $API.