mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 00:14:56 +00:00
cellAdec: fix uninitialized default size of AVPacketHolder (#12077)
This commit is contained in:
parent
961d41d0bd
commit
88ee62be26
2 changed files with 9 additions and 8 deletions
|
|
@ -324,8 +324,6 @@ namespace utils
|
|||
}
|
||||
|
||||
// Prepare to read data
|
||||
AVPacket packet;
|
||||
av_init_packet(&packet);
|
||||
av.frame = av_frame_alloc();
|
||||
if (!av.frame)
|
||||
{
|
||||
|
|
@ -335,6 +333,9 @@ namespace utils
|
|||
}
|
||||
|
||||
duration_ms = stream->duration / 1000;
|
||||
|
||||
AVPacket packet{};
|
||||
av_init_packet(&packet);
|
||||
|
||||
// Iterate through frames
|
||||
while (thread_ctrl::state() != thread_state::aborting && av_read_frame(av.format, &packet) >= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue