lavc: add ff_bprint_to_extradata() helper and use it.
authorClément Bœsch <ubitux@gmail.com>
Sat, 29 Dec 2012 21:09:59 +0000 (22:09 +0100)
committerClément Bœsch <ubitux@gmail.com>
Sun, 30 Dec 2012 21:19:04 +0000 (22:19 +0100)
commit36e61e24e7ac737b38c4382d439329352d9e0c29
treea3a478a143dcbb3d4d386fabfa1513487543c438
parente911f4ae720afe4a090ded2b165647734f0320ef
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.
libavcodec/assdec.c
libavcodec/assenc.c
libavcodec/dvdsubenc.c
libavcodec/internal.h
libavcodec/utils.c
libavformat/assdec.c
libavformat/jacosubdec.c
libavformat/samidec.c
libavformat/subviewerdec.c