wm4 8f6f232228 ffmpeg: use new decode API
This is a bit messy, mainly due to timestamp handling.

decode_video() relied on the fact that it could set dts on a flush/drain
packet. This is not possible with the old API, and won't be. (I think
doing this was very questionable with the old API. Flush packets should
not contain any information; they just cause a FIFO to be emptied.) This
is replaced with checking the best_effort_timestamp for AV_NOPTS_VALUE,
and using the suggested DTS in the drain case.

The modified tests (fate-cavs and others) still fails due to dropping
the last frame. This happens because the timestamp of the last frame
goes backwards (ffprobe -show_frames shows the same thing). I suspect
that this "worked" due to the best effort timestamp logic picking the
DTS over the decreasing PTS. Since this logic is in libavcodec (where
it probably shouldn't be), this can't be easily fixed. The timestamps
of the cavs samples are weird anyway, so I chose not to fix it.

Another strange thing is the timestamp handling in the video path of
process_input_packet (after the decode_video() call). It looks like
the code to increase next_dts and next_pts should be run every time
a frame is decoded - but it's needed even if output is skipped.
2016-10-01 17:22:22 +02:00
..
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-18 22:43:58 +02:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
aic
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
amv
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
ast
bfi
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
caf
2016-10-01 17:22:22 +02:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
crc
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-02-01 12:12:15 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-26 16:30:04 -04:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-08-21 02:58:13 +02:00
2016-04-13 11:37:14 -03:00
dpx
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-08-22 22:07:48 +02:00
2016-04-13 11:37:14 -03:00
2016-06-12 15:05:48 +02:00
2016-05-23 02:31:03 +02:00
2016-05-28 22:09:17 +02:00
2016-05-28 22:09:17 +02:00
2016-05-28 22:09:17 +02:00
2016-06-12 15:05:48 +02:00
2016-06-12 15:05:48 +02:00
2016-06-12 15:05:48 +02:00
2016-06-12 15:05:48 +02:00
2016-06-12 15:05:48 +02:00
2016-06-12 15:05:48 +02:00
2016-06-16 23:39:52 +02:00
2016-06-20 20:15:20 +02:00
2016-06-22 23:05:33 +02:00
2016-06-24 14:54:06 +02:00
2016-06-23 00:47:13 +02:00
2016-07-06 01:20:21 +02:00
2016-07-20 23:09:04 +02:00
2016-09-09 12:49:15 +02:00
2016-04-13 11:37:14 -03:00
2016-09-09 00:57:01 +02:00
2016-09-09 12:49:15 +02:00
2016-09-09 11:55:45 +02:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-03-09 20:05:29 +01:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-09-04 12:05:06 +02:00
2016-09-04 20:28:29 +02:00
jv
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
m4v
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
md5
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
mkv
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-10-01 17:22:22 +02:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-20 00:02:30 +02:00
mtv
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
opt
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
ptx
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-09-21 15:39:28 +02:00
rl2
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
sha
smc
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-09-22 23:55:31 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-10-01 17:22:22 +02:00
2016-04-13 11:37:14 -03:00
tea
thp
2016-04-13 11:37:14 -03:00
tmv
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
url
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
vb
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
vp5
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
vp7
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
w64
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
yop
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00
2016-04-13 11:37:14 -03:00