FFmpeg resync to release/1.1 branch as of revision 057051b8

Only tested to compile properly on both mac and linux.
Fix compilation of LIRC client with updated clang.

It refuses to compile arrays of variable length. Using malloc instead
Fix compilation issue

Was missing the definition of strcasecmp
Fix compilation issue

Was missing the definition of strcasecmp
Fix compilation

strncmp is in string.h not strings.h
Fix compilation issue.

Add missing header to common header, hopefully this will prevent similar instances to keep popping up
Detect the cropped picture size in the h.264 parser.

This removes one instance of hardcoded 1088->1080 translation.
Refs #11358.
Fix some more breakage caused by [a05b4d48]. Calling QDir::setFilter() with a negative filter overwrites the default positive filters of QDir::Files | QDir::Dirs.
Fix off-by-1000 error in saving total duration to the markup table.
Fixes #11358.  Use dimension and cropping information from the video.

This helps avoid hard-coding of 1088->1080 truncation and manual
rounding up to a multiple of 16.  There are still many instances in
the code base, but this is progress.

Cropping in the horizontal dimension is not yet implemented.

There is still some funny business with slightly changing aspect
ratios that needs further investigation.
Calculate h.264 aspect ratio using cropped dimensions.

Otherwise the aspect ratio may change from 1920/1080 to 1920/1088 and
lead to anomalous rescaling.
Remove another manual 1088->1080 translation.
Remove the 1088->1080 translation in the preview generator.

Instead, compute the dimensions from the player's display dimension.
Updated Spanish/Spain MythFrontend and MythBrowser translation
from Antonio Marcos Lopez Alonso

Thank you Antonio!

Closes #11436

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Make sure DVD menu highlight isn't hidden immediately due to framerate
being set to zero, which, when followed down the chain, causes a video
re-initialisation, which clears any subpicture.

Fixes #11443

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
dtvrecorder: Don't try to buffer frames for audio-only streams.
fix issue #10222: mythcommflag segfaulting

The problem in issue #10222 is that it is adding the CODEC_FLAG2_FAST flag.  This causes unsafe functions to be used, causing a segfault. The proper way to fix this would probably be to figure out how to test for the "experimental speedups" flag, however I don't know the codebase well enough for this.

I tested how this would affect the speed of mythcommflag on one of my recordings.  The results:

Before removing flag:
real 2m13.123s
user 2m16.713s
sys 0m3.502s

After removing flag:
real 2m13.021s
user 2m15.446s
sys 0m3.758s
FIx video scanning following [a05b4d48]. Calling QDir::setFilter() with a negative filter overwrites the default positive filters of QDir::Files | QDir::Dirs.
Generally empty()/isEmpty() is more efficient than using size()
Few more size() replacements with empty() or isEmpty(). Silences some warnings from cppcheck and other SA tools.