libavcodec/utils: Add braces to shut up gcc warnings

libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces]
libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces]
lavfi: remove some draw_slice related code that has become unneeded

Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vf_tinterlace: dont mix declarations and expressions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
gifdec: use transparent instead of background color index

Wrong code was commited in 64f4fb75c4cea6b33b5fd5b135c19950df9a7154.
lavfi/video: ensure that filter_frame is called.

This is a temporary workaround until all filters have been
upgraded to filter_frame and the framework can forget completely
about start_frame/draw_slice/end_frame.
lavfi/sink_buffer: switch to filter_frame.
cavsdec: cosmetics, reformat
cavs: cosmetics, reformat top part
cavs: deMpegEncContextize

It does not use any of the mpegvideo infrastructure, just a few fields
from the context.

Fixes a segfault with the emu edge flag, since emu edge buffer is now
allocated as a part of the frame buffer allocation and cavs calls
ff_get_buffer() directly, it does not use mpegvideo buffer management.

Fixes a memleak of the last frame.
cavsdec: export picture type in the output frame
FATE: add cavs test
lavc/srtdec: make some sscanf to work at the end of a line.

Fix sscanf calls that can't work at the end of a line unless it ends
with \r\n or \n: the markup line may/should/must not end with these
characters.
lavf/srtdec: remove line break hack.

This is not necessary anymore since the last commit.
lavc/srtenc: do not add trailing line breaks with SubRip.

The SRT muxer is reponsible for separating events with two line breaks,
there is no need to add more than necessary. Similarly, other muxers
(such as Matroska) are not supposed to add line breaks at the end of the
payload.
lavc/srtenc: just like the decoder, mark SRT encoder as deprecated.
lavc: add ff_bprint_to_extradata() helper and use it.

This commit also makes sure the extradata and subtitle_header are NUL
terminated, without taking into account the trailing '\0' in account in
the size.

At the same time, it should fix 'warning: dereferencing type-punned
pointer will break strict-aliasing rules' warning for compilers who
don't consider uint8_t** and char** compatibles.
ffserver: add missing padding to extradata.
lavc/avcodec: fix FF_INPUT_/BUFFER_/PADDING_SIZE typo.
Add MPL2 subtitles demuxer and decoder.
Add VPlayer subtitles demuxer and decoder.

Note that the linebreaks text codec option (but not the feature) has
been removed; its main goal was to allow demuxers to configure the text
decoder (and not meant to be used by users), but the AVOption are not a
viable solution. This is solved differently in this commit.