Do not reject LIST tags in wav with size 4.

Fixes ticket #745.
(cherry picked from commit a8e93ce4cb74dc26153bdccfbe8a487674e583a6)
Export ff_vdpau_vc1_decode_picture().

XBMC's configure script checks for this function in installed
libavcodec.so to determine VDPAU support.

Fixes ticket #762 reported by Christian Marillat
(cherry picked from commit 9994643fdd6c06b4f986be8879953a139fbd1a40)
ac3dec: update checked AV_EF flags.

A user who wishes to use default error concealment cannot set the
AV_EF_CRCCHECK flag because not every CRC in every format is a
reliable indicator of bitstream damage. In some formats crcrs
can be nonsensical in absence of any damage. We thus add the
AV_EF_CAREFUL flag in addition to the AV_EF_CRCCHECK flag to
allow a user to enable this reliable CRC check without having to
enable all CRC checks in all formats.

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpeg12enc: fix drop_frame_timecode value

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: force setting video mode on fullscreen toggle

Fixes ticket #736. Based on the patch by glangshaw.

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 9fb2b412585f94d4a74eb93598b0b1cc3482c189)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: add 10 minute seek support to ffplay

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 91a3ea671adda0039c6c221f158a88391416b574)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: Fix got_frame type.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit a5a1e3cb8a5f554818c2e491ab4d2cad833a4556)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: clear pkt_temp when pkt is freed.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit efe8a1ba08dd868e5a96f5759258b0733bb2004c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
riff: Fix freeing of random value.
Fixes Ticket752
Bug-found-by: Diana Elena Muscalu
(cherry picked from commit 76b9a0961c33c9eb19b220c6f0edfbb3e79fcd59)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4xm: check if there are bits left in decode_i_block()
Fixed Ticket753
Bug Found by: Diana Elena Muscalu

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ljpeg: Check that lowres is 0 as lowres is not possible with ljpeg.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mxfdec: Only use the new demuxing logic for OPAtom

This is a stopgap for ticket #746.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264: fix init of topleft ref/mv.
Fixes Ticket778

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4d70023a2a83c5c7690708a5a5acfe8ac8ed8f19)
libavdevice: Fix v4l2 compilation under FreeBSD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ffa1f541b350946591ea80e134917b28a860fcad)
h264: Print pass in NAL debug output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 393253b4b3b454830b22c8e69acbe11e2684da7e)
h264: add forgotten \n to "Invalid mix of idr and non-idr slices"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ecb14b8af73b92e5a1be47c119d2f528ff402ebd)
h264: reset picture->sync on allocation.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 36fa781bd6b4e0f40abd31431af2d29d87e9b194)
h264: Fix recovery_frame initialization when recovery_frame is -1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit fba6777363eb74d926aa0eed281a77ff152a3ad5)
h264: Fix seeking in 00017.MTS

Fixes Ticket852

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 9d9316ae34ea2a5e481ac15f31d42c87a8ef4380)
h264: Fix frame sync / random access handling.

It seems I have misunderstood the spec when I implemented this
originally.

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