mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Actually use the temp packet.
This commit is contained in:
1 parent
72e8e6448f
commit
50e4eded75
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user