dxa: fix decoding of first I-frame by separating I/P-frame decoding

5ef7c84 broke decoding for the first keyframe due to an unnecessary
check for a reference frame.

CC: libav-stable@libav.org
movenc: Indicate that negative timestamps are supported

The mov/mp4 muxer has support for handling negative timestamps
via edit lists (which customarily is used for handling the 1-frame
delay due to B-frames as well).

Using the muxer's native way of handling it is better than using
the generic offsetting. The generic offsetting is a bit too
crude when e.g. the timebase of one track is 1/fps, where the
edit lists can handle it accurately.

Signed-off-by: Martin Storsjö <martin@martin.st>
Merge commit 'c34a96a5ddfa390ce2a352eca79190766c9056d4'

* commit 'c34a96a5ddfa390ce2a352eca79190766c9056d4':
  dxa: fix decoding of first I-frame by separating I/P-frame decoding

Conflicts:
	libavcodec/dxa.c

See: 186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Indicate that negative timestamps are supported

Merged-by: Michael Niedermayer <michaelni@gmx.at>
fate: add ffv1.0 test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpeg12dec: also print progressive seq and chroma format

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/error_resilience: Fix handling of matrox mpeg2

Fixes Ticket2615

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegts: reanalyze packet size on mismatches

Fixes Ticket1812
Fixes Ticket2838

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/jpeg2000dec: fix near null pointer dereference

Fixes Ticket2840

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Warn the user if a pix_fmt != yuv420p was chosen for MPEG-2 video encoding.

Fixes ticket #2870.
avformat/mpegts: print packet size warning only if new size differs from old

No case is known to have triggered this, but its more correct to check that the
new size differs.

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

The value was off by a packet

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegts_get_pcr: dont loose a packet when resyncing

This matches how read_packet() works

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/mpegts: resync from the smallest packet size on

This avoids the loss of a packet in many cases if the packet size was wrong.
It also improves detection of packet size changes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix frame width and height for some targa_y216 samples.

Fixes ticket #2864.