Only test the first frame for missing aac_adtstoasc bistream filter.

Many players ignore broken aac frames, so don't abort mov or flv
muxing when encountering one, just print a warning instead.

Fixes ticket #2380.
(cherry picked from commit 1741fece7073f51efdd837a4f307ea2cdf3d1cfb)
Write broken aac frames to mov files instead of skipping them.

Fixes decoding with picky media players.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b448c0a68d0cc7dfef736267dfdaed0e213c020b)
smacker: fix off by one error

Regression since a93b572ae4f517ce0c35cf085167c318e9215908.

Fixes #2426.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit e3cc92a623a6ece42816c7a692c8815688a99ab0)
Skip padding in an id3 tag in aiff files.

Fixes ticket #2430.

Reviewed-by: Matthieu Bouron
(cherry picked from commit db2d3a90825025b2f5da85792e1df33280c61391)
lavc: fix recoded subtitles end.

Text subtitles packets are not 0-terminated (and if they are,
it is handled by the recoding process since 0 is a valid
Unicode code point). The terminating 0 would overwrite the
last payload octet.

OTOH, packets must be 0-padded.

Fix a problem reported in trac ticket #2431.
Merge branch 'ffmpeg_track/release-1.2' into adffmpeg_track/trunk

* ffmpeg_track/release-1.2:
  lavc: fix recoded subtitles end.
  Skip padding in an id3 tag in aiff files.
  smacker: fix off by one error
  Write broken aac frames to mov files instead of skipping them.
  Only test the first frame for missing aac_adtstoasc bistream filter.

git-svn-id: http://svn.ad-group.adh/svn/native_client/native/ffmpeg/trunk@9572 4601b0d2-a6ba-4ff0-a3bb-59d57de6f651
vaapi: fix argument for ff_vaapi_common_end_frame call
(cherry picked from commit b066d90211072c7532e17c0c54d8475f10fc97ad)
Merge branch 'ffmpeg_track/release-1.2' into adffmpeg_track/trunk

* ffmpeg_track/release-1.2:
  vaapi: fix argument for ff_vaapi_common_end_frame call (cherry picked from commit b066d90211072c7532e17c0c54d8475f10fc97ad)

git-svn-id: http://svn.ad-group.adh/svn/native_client/native/ffmpeg/trunk@9580 4601b0d2-a6ba-4ff0-a3bb-59d57de6f651
libavfilter now depends on avformat even with no filters enabled due to using av_register_all in ff_load_image.  This dependency needs to be explicitly stated for the android lib loader

git-svn-id: http://svn.ad-group.adh/svn/native_client/native/ffmpeg/trunk@9589 4601b0d2-a6ba-4ff0-a3bb-59d57de6f651
Fix type of shared flac table ff_flac_blocksize_table[].

Fixes ticket #2533.
(cherry picked from commit a07ac1f7888fd08e42da2bed0421e74f1cfac177)
Merge branch 'ffmpeg_track/release-1.2' into adffmpeg_track/trunk

* ffmpeg_track/release-1.2:
  Fix type of shared flac table ff_flac_blocksize_table[].

git-svn-id: http://svn.ad-group.adh/svn/native_client/native/ffmpeg/trunk@9657 4601b0d2-a6ba-4ff0-a3bb-59d57de6f651
lavfi/subtitles: zero-init AVSubtitle.

This avoids invalid free when the stream id doesn't match the packet
stream index.

Ticket #2501
(cherry picked from commit 035a3792c223d3b2bba79f38049bd6363b2d470d)
matroska: set "done" only during resync fail.

Fixes playback of test7.mkv validation test file.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 762d4335aec2e5299a06bfbce15d21336af19464)
avcodec/mpegvideo: Fix block height for lowres 3 interlaced blocks

Fixes green trash
Fixes part of Ticket2535

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit bca50e5cd52240d885afeb3edb0fa2c74b352add)
avcodec/mpegvideo: Fix edge emu with lowres

Fixes a few green artifacts at the top
Fixes rest of Ticket 2535

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c67bca2b5a94efb8fb3c2ba2c7d9b1b413468838)
rmdec: flush audio packet on seeking

Fixes Ticket1605

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 519ebb5ee5b89b8ecc80b4a4540fcbeb65cda172)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dpxenc: fix data offset

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 361319d0f49475bc14c744194870f9bab78a8a83)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix heap-buffer-overflow in matroska_parse_block

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 81e85bc95cb1e4f8cc7b1ba71ec027c8791b55d1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
xbmdec: fix off by one error in scanf()

Fixes out of array access

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
src_movie: fix scanf string

Fixes out of array accesses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit adaa7743f5fdca0c0aca0b7ffdebf61c7d868571)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>