fixed: Nginx filesize was broken for some configs (+tweak regex a bit)
FIX: [mediacodec] make sure the output buffer is released from the SurfaceView queue
FIX: [mediacodec] properly release output buffer if AddProcessor is not called
Merge pull request #4557 from arnova/nginx_filesize

Nginx filesize was broken for some configs
Merge pull request #4567 from koying/fixamcbuffers

FIX: [mediacodec] make sure the output buffer is released from the SurfaceView queue
Merge pull request #4569 from koying/fixamcreleasebuffer

FIX: [mediacodec] properly release output buffer if AddProcessor is not called
overlays: don't reduce ASS texture width unnecessarily

Fixes OpenELEC/OpenELEC.tv#3059 on GitHub, where an ASS subtitle
texture could become too narrow to fit subtitle bitmaps in full,
causing them to be inappropriately clipped. This issue has become
obvious lately due to changes in libass that make it output wider
(but fewer) images than it used to.
overlays: include padding in initial ASS texture width computation
fixed context menu 'remove safely' selection
posixmount/udevprovider: path safety. check umount return value

all paths must be escaped or umount could fail miserably
Don't keep temp CReadState on CurlFile::Seek

Apparently there are a lot of servers around that limit to two
concurrent connections.  This also eliminates a potential leak of the
temporary CReadState should the early return be taken.
Try CurlFile::Seek without multisession on failure
Minor refactor of CurlFile::Seek
fix album rating wasn't saved in the database
[dxvahd] attempt to fix colour range
fixed: Downloading subs for rars was broken
h264_parser: Initialize the h264dsp context in the parser as well

Each AVStream struct for an H.264 elementary stream actually has two
copies of the H264DSPContext struct (and in fact all the other members
of H264Context as well):

((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp
((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp

but only the first of these was actually being initialised. This
prevented the addition of platform-specific implementations of
parser-related functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
h264dsp: Factorize code into a new function, h264_find_start_code_candidate

This performs the start code search which was previously part of
h264_find_frame_end() - the most CPU intensive part of the function.

By itself, this results in a performance regression:
              Before          After
              Mean   StdDev   Mean   StdDev  Change
Overall time  2925.6 26.2     3068.5 31.7    -4.7%

but this can more than be made up for by platform-optimised
implementations of the function.

Signed-off-by: Martin Storsjö <martin@martin.st>
arm: Add assembly version of h264_find_start_code_candidate

               Before          After
               Mean   StdDev   Mean   StdDev  Change
This function   508.8 23.4      185.4  9.0    +174.4%
Overall        3068.5 31.7     2752.1 29.4     +11.5%

In combination with the preceding patch:
                Before          After
                Mean   StdDev   Mean   StdDev  Change
Overall         2925.6 26.2     2752.1 29.4     +6.3%

Signed-off-by: Martin Storsjö <martin@martin.st>
[ffmpeg] Backport of h264_find_start_code_candidate optimisation