Unknown W. Brackets
0ab6f1d080
Mpeg: Update videos to latest FFmpeg packet pump.
2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2b2dae60d3
Mpeg: Use direct pts value checks in newer FFmpeg.
2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2362d71d70
Mpeg: Remove deprecated codec register calls.
2021-02-18 00:20:27 -08:00
Henrik Rydgård
8b101ae4a1
Rename the new warmup variable from #14091
2021-02-09 16:11:59 +01:00
sum2012
b127aace57
Only allow sceMpegGetAvcAu warmup for God Eater Series
...
Fix #14086
2021-02-09 22:46:09 +08:00
sum2012
1d2150d2ae
Mpeg:Only allow firmware >= 6 for warmup
...
Fix blue screen in #13146
2021-01-31 15:32:29 +08:00
sum2012
02f1b6452b
Try to build fix on non-windows
2021-01-29 22:45:30 +08:00
sum2012
6bc3cb4dfa
Mpeg:Only allow firmware >= 3 for warmup
...
Fix #13996
2021-01-29 22:26:45 +08:00
shenweip
a174390c95
Corrects the calculation of the return value when the callback of RingbufferPut returns a negative value.
2020-12-28 10:38:27 +08:00
sum2012
a5bd77061b
Typo
...
Thanks @shenweip
2020-12-23 19:52:37 +08:00
sum2012
0572423e2b
Fix Grand Theft Auto - Vice City Stories
2020-12-23 06:22:30 +08:00
sum2012
d56e23ec24
Mpeg: Add warm up staff
...
fix #13527
2020-12-22 23:39:41 +08:00
sum2012
f7a864981c
Add stack value in scempeg and scepsmf from jpcsp
...
Might help video corruption issue
2020-12-16 22:33:55 +08:00
shenweip
3380d31974
Mpeg:Checks autual available space before putting data.
2020-11-23 15:24:03 +08:00
shenweip
0b64d58c7d
Fix mistake.
2020-11-18 10:59:45 +08:00
shenweip
a16e758f33
Corrects the number of added packets returned by sceMpegRingbufferPut, especially if callback is called multiple times.
2020-11-15 22:02:53 +08:00
shenweip
5e5f5d0164
Makes video streams amount meet the expectation of sceMpegRegistStream() not only the mpegheader.
2020-11-13 18:55:52 +08:00
shenweip
5819ef1f82
Reads all packets to ringbuffer.
...
Calls callback multiple times to read all packets when the write position reaches the boundary of the ringbuffer.
2020-11-13 18:50:09 +08:00
sum2012
1f494cf234
Mpeg:Revert part of fa59be7e5d
...
Fix #13595
2020-11-09 20:57:40 +08:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
1dc5ee424b
SaveState: Split out Do types to reduce headers.
2020-08-10 08:03:44 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
Henrik Rydgård
5423f76e25
Hook up the first UI sound, make it play.
2020-08-03 12:08:11 +02:00
sum2012
fa59be7e5d
sceMpegAvcCsc: added range validity tests.
...
http://code.google.com/p/jpcsp/source/detail?r=3715
2020-07-19 22:14:00 +02:00
Unknown W. Brackets
54e1afda1e
HLE: Make calling mips funcs simpler.
...
This makes their return value handling, scheduling, etc. more
straight-forward.
2020-03-22 06:59:43 -07:00
Unknown W. Brackets
7d36b70a8e
Kernel: Rename conflicting kernel object names.
...
These are names that can often conflict with system headers in ports.
Let's just simplify by prefixing with PSP.
No actual functional/code changes, just syntax and names.
2020-03-15 08:33:40 -07:00
shenweip
54de07d4ea
Attempt to replace 0 frame width with valid frame width.(sceMpegAvcCsc)
...
Fixes #12627 .
2020-03-03 17:15:14 +08:00
shenweip
8ccc7996b0
Don't check auAddr.
2020-01-05 22:37:29 +08:00
shenweip
4bc0274d53
Check invalid address in sceMpegAtracDecode.
...
Fixes #11026 .
2020-01-05 22:11:43 +08:00
Henrik Rydgård
bd71af24db
Fix some minor things found looking at Valgrind output
2019-02-27 13:42:00 +01:00
Henrik Rydgård
ecf62a03ad
Naruto 3: Probably a better fix for the video hang issue.
...
Fixes #9591 , replaces #11772
2019-02-10 11:42:53 +01:00
Unknown W. Brackets
a5f61e798e
Mpeg: Avoid reading outside available bytes.
...
When we're just looking for the size or offset, it shouldn't be necessary
to load the stream, so hopefully we can avoid it.
2018-09-08 12:14:17 -07:00
Greg V
70c54a7d1a
Fix build with ffmpeg 4.0
2018-04-21 16:44:45 +03:00
Henrik Rydgård
6a1fa728d8
Remove Globals.h
2017-08-31 17:15:22 +02:00
Henrik Rydgard
fcbc20f240
Small changes to make Common and Core build under my preliminary UWP setup.
2017-02-24 18:59:41 +01:00
Henrik Rydgard
19d321bd8c
Fix a bad memory leak in sceMpeg
2017-02-20 11:12:39 +01:00
sum2012
957dfa1288
Add timing of sceMpegDelete
...
based on JPCSP 8e4e6334da762be37a90855a686a7decbc29bacf
2017-02-08 05:18:22 +08:00
Unknown W. Brackets
f70f05668f
Mpeg: Return errors when no audio is available.
...
Before, we were only returning an error once, in an effort to log only
once. This meant sometimes games would not realize they needed to add
packets.
Un-reverted from e866d83
. No longer breaks Patapon with other mpeg fixes.
2016-09-24 17:54:40 -07:00
Henrik Rydgård
eac18489e6
Merge pull request #8867 from unknownbrackets/mpeg
...
Improve mpeg parsing / corruption issues
2016-08-06 18:14:17 +02:00
Unknown W. Brackets
e55198f7e7
Correct some initialization order warnings.
...
Also, another missing init with IRBlocks.
2016-08-05 10:46:11 -07:00
sum2012
1cc645b5e4
Revert "Temporarily disable PMP video for non-windows"
...
This revert
5e20ba1811
2016-07-25 20:21:53 +08:00
Unknown W. Brackets
558b4620e8
Mpeg: Parse video streams from PSMF header.
...
Without doing this, FFmpeg will try to probe the streams to detect them
instead. When it does this, sometimes it tries to read beyond the data
that's available - and then gets confused by EOFs.
Parsing this way allows us to control the situation.
An example is Valkyrie Profile, corruption in the first frames of the
second video during the intro. Thi doesn't fix it yet, but now it's just
a matter of buffering.
2016-07-24 15:58:06 -07:00
Unknown W. Brackets
266ee632e8
Cleanup FFmpeg funcs deprecated in 3.x.
2016-07-24 12:53:54 -07:00
Unknown W. Brackets
04dcaeae1d
Mpeg: Move, rather than resetting, packetsAvail.
...
When we've got garbage data, this has to stay incorrect. Without this,
Megaman X gets confused when playing its video (because it enqueues
garbage packets.)
See #3318 .
2016-06-04 18:16:23 -07:00
Unknown W. Brackets
4ee39f82e4
Mpeg: Validate added packets.
...
Older libraries only, but this will cause it to reject packets that don't
make sense. So far, this seems to mirror the behavior of various garbage
packets sent to the real firmware.
2016-06-04 18:16:22 -07:00
Unknown W. Brackets
41f2999a2b
Mpeg: Write into the ringbuffer using actual ring.
...
This mimics behavior with clamped sizes and wrap around, and also makes it
easier to implement the garbage data handling the PSP has.
2016-06-04 18:16:21 -07:00
Unknown W. Brackets
6d14c17f26
Mpeg: Treat negative available packets as zero.
2016-06-04 18:16:19 -07:00
Unknown W. Brackets
deffb246ae
Mpeg: Require less memory for older lib versions.
...
It seems it started requiring 64k at 1.05.
2016-06-04 18:16:18 -07:00
sum2012
5e20ba1811
Temporarily disable PMP video for non-windows
2016-04-13 20:06:51 +08:00
Henrik Rydgard
c8457d39ed
Fix a bunch of compiler warnings, delete some unused code
2016-03-13 15:17:31 +01:00