1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-18 03:19:31 +02:00
FFmpeg/tests/ref/fate/mpeg2-ticket186
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

357 lines
20 KiB
Plaintext

#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 352x288
#sar 0: 12/11
0, 0, 0, 1, 152064, 0xd23ffc59
0, 1, 1, 1, 152064, 0x899fb8b1
0, 2, 2, 1, 152064, 0x5958d070
0, 3, 3, 1, 152064, 0xf2becd8f
0, 4, 4, 1, 152064, 0xb47bbed7
0, 5, 5, 1, 152064, 0x7ca54f36
0, 6, 6, 1, 152064, 0x02389610
0, 7, 7, 1, 152064, 0x469f3f87
0, 8, 8, 1, 152064, 0x935a780e
0, 9, 9, 1, 152064, 0x3876c20c
0, 10, 10, 1, 152064, 0x49df265f
0, 11, 11, 1, 152064, 0xdfe420e0
0, 12, 12, 1, 152064, 0x6e34a0c4
0, 13, 13, 1, 152064, 0x47e1cb26
0, 14, 14, 1, 152064, 0x68e74188
0, 15, 15, 1, 152064, 0xe9d34b4e
0, 16, 16, 1, 152064, 0xa8665e1a
0, 17, 17, 1, 152064, 0x88e3b39f
0, 18, 18, 1, 152064, 0x1c1ab2c3
0, 19, 19, 1, 152064, 0xb1a24ddf
0, 20, 20, 1, 152064, 0x030d5afc
0, 21, 21, 1, 152064, 0x98306d64
0, 22, 22, 1, 152064, 0x5ce0548d
0, 23, 23, 1, 152064, 0xacac26f3
0, 24, 24, 1, 152064, 0xf167f698
0, 25, 25, 1, 152064, 0xd9398539
0, 26, 26, 1, 152064, 0xd7aec2c4
0, 27, 27, 1, 152064, 0xa6ef9440
0, 28, 28, 1, 152064, 0xc289b278
0, 29, 29, 1, 152064, 0x3796939d
0, 30, 30, 1, 152064, 0x48c09366
0, 31, 31, 1, 152064, 0xf4cc815a
0, 32, 32, 1, 152064, 0x1c63cdc2
0, 33, 33, 1, 152064, 0xd3a8ad8e
0, 34, 34, 1, 152064, 0x70f94bc0
0, 35, 35, 1, 152064, 0xf9c115ea
0, 36, 36, 1, 152064, 0x44a2f607
0, 37, 37, 1, 152064, 0x7e9eaa64
0, 38, 38, 1, 152064, 0x37b86b68
0, 39, 39, 1, 152064, 0x59d22dd4
0, 40, 40, 1, 152064, 0x5d0d0e8d
0, 41, 41, 1, 152064, 0x5c97d4a1
0, 42, 42, 1, 152064, 0xd44ef54d
0, 43, 43, 1, 152064, 0x42721789
0, 44, 44, 1, 152064, 0x27597277
0, 45, 45, 1, 152064, 0xdf4af8b4
0, 46, 46, 1, 152064, 0x5df7390c
0, 47, 47, 1, 152064, 0xbebfbf7c
0, 48, 48, 1, 152064, 0x753959bb
0, 49, 49, 1, 152064, 0x3331ab18
0, 50, 50, 1, 152064, 0xec4a0f33
0, 51, 51, 1, 152064, 0xbb085737
0, 52, 52, 1, 152064, 0x3938abf4
0, 53, 53, 1, 152064, 0x18d46683
0, 54, 54, 1, 152064, 0xb12ace0c
0, 55, 55, 1, 152064, 0x09b13430
0, 56, 56, 1, 152064, 0x85bd5e88
0, 57, 57, 1, 152064, 0xec0f8a67
0, 58, 58, 1, 152064, 0x51a4fc74
0, 59, 59, 1, 152064, 0xded4cda7
0, 60, 60, 1, 152064, 0xb69412a9
0, 61, 61, 1, 152064, 0x3c9de6f9
0, 62, 62, 1, 152064, 0x223fcc41
0, 63, 63, 1, 152064, 0x5df7b89c
0, 64, 64, 1, 152064, 0x1e58b37a
0, 65, 65, 1, 152064, 0xbbff2c09
0, 66, 66, 1, 152064, 0x4e0f4d4a
0, 67, 67, 1, 152064, 0x3d99caa3
0, 68, 68, 1, 152064, 0xcc329c2f
0, 69, 69, 1, 152064, 0x49207c0a
0, 70, 70, 1, 152064, 0x489f2d50
0, 71, 71, 1, 152064, 0x5a50b0df
0, 72, 72, 1, 152064, 0x509eb79e
0, 73, 73, 1, 152064, 0x60622c61
0, 74, 74, 1, 152064, 0x8c8cde9f
0, 75, 75, 1, 152064, 0xe8c0bb6c
0, 76, 76, 1, 152064, 0xb03581b6
0, 77, 77, 1, 152064, 0x398525c2
0, 78, 78, 1, 152064, 0x87983ab0
0, 79, 79, 1, 152064, 0x032af6b5
0, 80, 80, 1, 152064, 0x7434baa4
0, 81, 81, 1, 152064, 0xff5dd044
0, 82, 82, 1, 152064, 0x45b2bb36
0, 83, 83, 1, 152064, 0x1af29008
0, 84, 84, 1, 152064, 0x07aa8975
0, 85, 85, 1, 152064, 0x17957756
0, 86, 86, 1, 152064, 0x48b5825e
0, 87, 87, 1, 152064, 0x169d70bc
0, 88, 88, 1, 152064, 0x803b30c6
0, 89, 89, 1, 152064, 0x6158c971
0, 90, 90, 1, 152064, 0xb126e53e
0, 91, 91, 1, 152064, 0xef49ba53
0, 92, 92, 1, 152064, 0xfcfd7f17
0, 93, 93, 1, 152064, 0x5280779e
0, 94, 94, 1, 152064, 0x638d6f48
0, 95, 95, 1, 152064, 0xdb0f1ed5
0, 96, 96, 1, 152064, 0x2cb959b0
0, 97, 97, 1, 152064, 0x0841547c
0, 98, 98, 1, 152064, 0x412a555b
0, 99, 99, 1, 152064, 0xfe525057
0, 100, 100, 1, 152064, 0xa8cf0cbc
0, 101, 101, 1, 152064, 0xbf2dcaee
0, 102, 102, 1, 152064, 0x636cc494
0, 103, 103, 1, 152064, 0xc9e288bc
0, 104, 104, 1, 152064, 0xe77f4d03
0, 105, 105, 1, 152064, 0x722a4bd0
0, 106, 106, 1, 152064, 0x5271f5ef
0, 107, 107, 1, 152064, 0x05208e75
0, 108, 108, 1, 152064, 0xb8845f88
0, 109, 109, 1, 152064, 0x47aa117c
0, 110, 110, 1, 152064, 0xe695fe27
0, 111, 111, 1, 152064, 0x2e50f864
0, 112, 112, 1, 152064, 0x52d2b719
0, 113, 113, 1, 152064, 0xdbf48285
0, 114, 114, 1, 152064, 0xe0b2ba93
0, 115, 115, 1, 152064, 0x1c85a5ce
0, 116, 116, 1, 152064, 0x8ef9a8e8
0, 117, 117, 1, 152064, 0x41e8ae26
0, 118, 118, 1, 152064, 0x3328d571
0, 119, 119, 1, 152064, 0xce7d4da2
0, 120, 120, 1, 152064, 0x7a6f7416
0, 121, 121, 1, 152064, 0xb3fc65a6
0, 122, 122, 1, 152064, 0xc5a261e9
0, 123, 123, 1, 152064, 0x943c5925
0, 124, 124, 1, 152064, 0x259180b2
0, 125, 125, 1, 152064, 0x3acd4e1b
0, 126, 126, 1, 152064, 0x692090b4
0, 127, 127, 1, 152064, 0xea1184d0
0, 128, 128, 1, 152064, 0x3e0038d5
0, 129, 129, 1, 152064, 0xf77872a2
0, 130, 130, 1, 152064, 0xe4cb7bb5
0, 131, 131, 1, 152064, 0x9d6d2623
0, 132, 132, 1, 152064, 0xb9056247
0, 133, 133, 1, 152064, 0xcd8b3dc5
0, 134, 134, 1, 152064, 0x13ea1b6d
0, 135, 135, 1, 152064, 0x764f3233
0, 136, 136, 1, 152064, 0x54c00ba8
0, 137, 137, 1, 152064, 0x2d9aedac
0, 138, 138, 1, 152064, 0x1af00532
0, 139, 139, 1, 152064, 0xcecae31b
0, 140, 140, 1, 152064, 0x0e6ea17f
0, 141, 141, 1, 152064, 0x66b0b8c4
0, 142, 142, 1, 152064, 0x0ee879bb
0, 143, 143, 1, 152064, 0xf7f029cc
0, 144, 144, 1, 152064, 0xdd5d08d6
0, 145, 145, 1, 152064, 0x936ae367
0, 146, 146, 1, 152064, 0xf0f4aba0
0, 147, 147, 1, 152064, 0x5233a9e7
0, 148, 148, 1, 152064, 0x02af732b
0, 149, 149, 1, 152064, 0xb2eb2476
0, 150, 150, 1, 152064, 0x998732b4
0, 151, 151, 1, 152064, 0xf025230f
0, 152, 152, 1, 152064, 0x474f3b12
0, 153, 153, 1, 152064, 0xe4e950e2
0, 154, 154, 1, 152064, 0xa3f87fb3
0, 155, 155, 1, 152064, 0x1e465fda
0, 156, 156, 1, 152064, 0x9e8caab2
0, 157, 157, 1, 152064, 0x0224aca7
0, 158, 158, 1, 152064, 0x24fcec49
0, 159, 159, 1, 152064, 0x1c1df7ea
0, 160, 160, 1, 152064, 0xc466f68f
0, 161, 161, 1, 152064, 0xdb11d8fa
0, 162, 162, 1, 152064, 0xa0f61157
0, 163, 163, 1, 152064, 0x352013b0
0, 164, 164, 1, 152064, 0xc14243c7
0, 165, 165, 1, 152064, 0xb18b6810
0, 166, 166, 1, 152064, 0x040942e6
0, 167, 167, 1, 152064, 0x6fe129f9
0, 168, 168, 1, 152064, 0xc3d64c5f
0, 169, 169, 1, 152064, 0x50954752
0, 170, 170, 1, 152064, 0xa4d24c64
0, 171, 171, 1, 152064, 0x3af254c0
0, 172, 172, 1, 152064, 0x6fde4801
0, 173, 173, 1, 152064, 0xf8fe19b4
0, 174, 174, 1, 152064, 0x97b34958
0, 175, 175, 1, 152064, 0x916e2ff4
0, 176, 176, 1, 152064, 0x60c528e2
0, 177, 177, 1, 152064, 0x4522435e
0, 178, 178, 1, 152064, 0x861f5d1b
0, 179, 179, 1, 152064, 0x42c3bf28
0, 180, 180, 1, 152064, 0x9772db11
0, 181, 181, 1, 152064, 0x0692f5b8
0, 182, 182, 1, 152064, 0xb06b4aed
0, 183, 183, 1, 152064, 0xdc852986
0, 184, 184, 1, 152064, 0xa7a025fb
0, 185, 185, 1, 152064, 0xe28f365a
0, 186, 186, 1, 152064, 0xcbf3830e
0, 187, 187, 1, 152064, 0x043bace9
0, 188, 188, 1, 152064, 0x5dd0b5df
0, 189, 189, 1, 152064, 0x6bd6d112
0, 190, 190, 1, 152064, 0xa585ceb6
0, 191, 191, 1, 152064, 0x91e7556a
0, 192, 192, 1, 152064, 0x8f2a0404
0, 193, 193, 1, 152064, 0x14066893
0, 194, 194, 1, 152064, 0x8f715862
0, 195, 195, 1, 152064, 0xb1063958
0, 196, 196, 1, 152064, 0x014c40f0
0, 197, 197, 1, 152064, 0x7ddcf94d
0, 198, 198, 1, 152064, 0x25473a22
0, 199, 199, 1, 152064, 0xcd150536
0, 200, 200, 1, 152064, 0x2d24d974
0, 201, 201, 1, 152064, 0x9130b2ce
0, 202, 202, 1, 152064, 0x9450a62a
0, 203, 203, 1, 152064, 0x7da258cd
0, 204, 204, 1, 152064, 0x6c2770de
0, 205, 205, 1, 152064, 0xd5fa731a
0, 206, 206, 1, 152064, 0x93757c14
0, 207, 207, 1, 152064, 0x4b754c71
0, 208, 208, 1, 152064, 0x51544841
0, 209, 209, 1, 152064, 0xf466910e
0, 210, 210, 1, 152064, 0xe818c675
0, 211, 211, 1, 152064, 0x6d45b6d8
0, 212, 212, 1, 152064, 0xa3de9aec
0, 213, 213, 1, 152064, 0x56023275
0, 214, 214, 1, 152064, 0xa1af21cb
0, 215, 215, 1, 152064, 0x1ff1b05e
0, 216, 216, 1, 152064, 0x142ecbdb
0, 217, 217, 1, 152064, 0xdfc6d541
0, 218, 218, 1, 152064, 0x8d8f7a4c
0, 219, 219, 1, 152064, 0x03d611ca
0, 220, 220, 1, 152064, 0x999e6d3f
0, 221, 221, 1, 152064, 0x304c95df
0, 222, 222, 1, 152064, 0xbdcff306
0, 223, 223, 1, 152064, 0x6408670c
0, 224, 224, 1, 152064, 0xa6d4d038
0, 225, 225, 1, 152064, 0xf2d13572
0, 226, 226, 1, 152064, 0x2fa8b357
0, 227, 227, 1, 152064, 0x24bbd269
0, 228, 228, 1, 152064, 0x23dd31f2
0, 229, 229, 1, 152064, 0x90913fe2
0, 230, 230, 1, 152064, 0x855efbca
0, 231, 231, 1, 152064, 0x45a123c0
0, 232, 232, 1, 152064, 0xec465cb2
0, 233, 233, 1, 152064, 0x3e79c4e9
0, 234, 234, 1, 152064, 0xaeac4476
0, 235, 235, 1, 152064, 0x2146392c
0, 236, 236, 1, 152064, 0x7a186239
0, 237, 237, 1, 152064, 0x9d26fed8
0, 238, 238, 1, 152064, 0x88f090ba
0, 239, 239, 1, 152064, 0x518bd9f8
0, 240, 240, 1, 152064, 0x70013bdd
0, 241, 241, 1, 152064, 0x5317601a
0, 242, 242, 1, 152064, 0x97e91795
0, 243, 243, 1, 152064, 0x1058915b
0, 244, 244, 1, 152064, 0x3549ffeb
0, 245, 245, 1, 152064, 0xa277707d
0, 246, 246, 1, 152064, 0xdcb6287d
0, 247, 247, 1, 152064, 0x371344fc
0, 248, 248, 1, 152064, 0xb7ea75c7
0, 249, 249, 1, 152064, 0x70c2fa2f
0, 250, 250, 1, 152064, 0x8dbec050
0, 251, 251, 1, 152064, 0xc21a77fe
0, 252, 252, 1, 152064, 0xf7c7678e
0, 253, 253, 1, 152064, 0xbee83fcb
0, 254, 254, 1, 152064, 0x6627efd7
0, 255, 255, 1, 152064, 0x4f139865
0, 256, 256, 1, 152064, 0x76fa5435
0, 257, 257, 1, 152064, 0xf0701fd6
0, 258, 258, 1, 152064, 0x153e3763
0, 259, 259, 1, 152064, 0xf5211469
0, 260, 260, 1, 152064, 0xc19d24b8
0, 261, 261, 1, 152064, 0xc2483a75
0, 262, 262, 1, 152064, 0x67a149ee
0, 263, 263, 1, 152064, 0x86f70e3a
0, 264, 264, 1, 152064, 0x281b166b
0, 265, 265, 1, 152064, 0xca810f3b
0, 266, 266, 1, 152064, 0x91c90741
0, 267, 267, 1, 152064, 0x4edcfbfa
0, 268, 268, 1, 152064, 0x0ca40c66
0, 269, 269, 1, 152064, 0xee998e3d
0, 270, 270, 1, 152064, 0xe4b6c1b2
0, 271, 271, 1, 152064, 0xbbe0a4cc
0, 272, 272, 1, 152064, 0xd080bcfd
0, 273, 273, 1, 152064, 0x365df7c5
0, 274, 274, 1, 152064, 0x934f071f
0, 275, 275, 1, 152064, 0xcfaefeef
0, 276, 276, 1, 152064, 0xedd8263e
0, 277, 277, 1, 152064, 0x1d5243de
0, 278, 278, 1, 152064, 0xc0d87e50
0, 279, 279, 1, 152064, 0xe25845b1
0, 280, 280, 1, 152064, 0x47006123
0, 281, 281, 1, 152064, 0xf1926203
0, 282, 282, 1, 152064, 0x494b8b9c
0, 283, 283, 1, 152064, 0xc50aa1b7
0, 284, 284, 1, 152064, 0xb82da5e2
0, 285, 285, 1, 152064, 0xa11cd0f6
0, 286, 286, 1, 152064, 0x7ebff98d
0, 287, 287, 1, 152064, 0x00902e76
0, 288, 288, 1, 152064, 0xdee41ea2
0, 289, 289, 1, 152064, 0x2b026058
0, 290, 290, 1, 152064, 0xce81051f
0, 291, 291, 1, 152064, 0x0d708815
0, 292, 292, 1, 152064, 0xd7719e35
0, 293, 293, 1, 152064, 0xf0239467
0, 294, 294, 1, 152064, 0x466d98b4
0, 295, 295, 1, 152064, 0xc1fb36e1
0, 296, 296, 1, 152064, 0x26bc139e
0, 297, 297, 1, 152064, 0x7fd111ea
0, 298, 298, 1, 152064, 0xa39737cb
0, 299, 299, 1, 152064, 0x8f5851ba
0, 300, 300, 1, 152064, 0xa971f6e2
0, 301, 301, 1, 152064, 0x0e5f6f80
0, 302, 302, 1, 152064, 0xdb8b5e06
0, 303, 303, 1, 152064, 0xf6006bcc
0, 304, 304, 1, 152064, 0x060cd1a6
0, 305, 305, 1, 152064, 0x419ef0a4
0, 306, 306, 1, 152064, 0xe79f0b93
0, 307, 307, 1, 152064, 0x1919e999
0, 308, 308, 1, 152064, 0xacb715bc
0, 309, 309, 1, 152064, 0x16616075
0, 310, 310, 1, 152064, 0x09aa4f10
0, 311, 311, 1, 152064, 0x976cdd70
0, 312, 312, 1, 152064, 0x4811dc21
0, 313, 313, 1, 152064, 0x30d31172
0, 314, 314, 1, 152064, 0x2db60b70
0, 315, 315, 1, 152064, 0x5377bb89
0, 316, 316, 1, 152064, 0x6c20cab3
0, 317, 317, 1, 152064, 0x964dad60
0, 318, 318, 1, 152064, 0x514df2c3
0, 319, 319, 1, 152064, 0xced22332
0, 320, 320, 1, 152064, 0x1c64bc82
0, 321, 321, 1, 152064, 0x10c38662
0, 322, 322, 1, 152064, 0xe6c7ff46
0, 323, 323, 1, 152064, 0x359da948
0, 324, 324, 1, 152064, 0x5a9458ee
0, 325, 325, 1, 152064, 0x1cda9888
0, 326, 326, 1, 152064, 0xbd081682
0, 327, 327, 1, 152064, 0x20f1510f
0, 328, 328, 1, 152064, 0x6bc261a9
0, 329, 329, 1, 152064, 0x9f0e5797
0, 330, 330, 1, 152064, 0xd14ca712
0, 331, 331, 1, 152064, 0x8df79054
0, 332, 332, 1, 152064, 0x34efa950
0, 333, 333, 1, 152064, 0x268d9d12
0, 334, 334, 1, 152064, 0xad91b2ed
0, 335, 335, 1, 152064, 0xe0ac87cf
0, 336, 336, 1, 152064, 0xba4cfd8e
0, 337, 337, 1, 152064, 0x876ef9e3
0, 338, 338, 1, 152064, 0x45ab6684
0, 339, 339, 1, 152064, 0x72a99564
0, 340, 340, 1, 152064, 0xdfc8be01
0, 341, 341, 1, 152064, 0x3a6b9e74
0, 342, 342, 1, 152064, 0xca1be9c6
0, 343, 343, 1, 152064, 0xc351bfc6
0, 344, 344, 1, 152064, 0xef30c978
0, 345, 345, 1, 152064, 0x062fc6f3
0, 346, 346, 1, 152064, 0x8731a9ec
0, 347, 347, 1, 152064, 0x19874144
0, 348, 348, 1, 152064, 0x929650eb
0, 349, 349, 1, 152064, 0x082557a1
0, 350, 350, 1, 152064, 0xb80510ae