mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Actually use the temp packet.
This commit is contained in:
parent
72e8e6448f
commit
50e4eded75
1 changed files with 2 additions and 1 deletions
|
@ -335,7 +335,7 @@ struct Atrac {
|
|||
if (packet->size < (int)atracBytesPerFrame) {
|
||||
// Whoops, we have a packet that is smaller than a frame. Let's meld a new one.
|
||||
u32 initialSize = packet->size;
|
||||
u32 needed = atracBytesPerFrame - initialSize;
|
||||
int needed = atracBytesPerFrame - initialSize;
|
||||
av_init_packet(&tempPacket);
|
||||
av_copy_packet(&tempPacket, packet);
|
||||
av_grow_packet(&tempPacket, needed);
|
||||
|
@ -350,6 +350,7 @@ struct Atrac {
|
|||
packet->data += needed;
|
||||
}
|
||||
}
|
||||
decodePacket = &tempPacket;
|
||||
}
|
||||
|
||||
int got_frame = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue