mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 17:41:54 -08:00
fix ffmpeg handling of dropped frames
This commit is contained in:
1 parent
c183857113
commit
23b643422b
1 file changed
+2
@@ -192,6 +192,8 @@ decoder::decoder(
|
||||
|
||||
void decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial)
|
||||
{
|
||||
if (frame_index != this->frame_index)
|
||||
packet.clear();
|
||||
for (const auto & d: data)
|
||||
packet.insert(packet.end(), d.begin(), d.end());
|
||||
this->frame_index = frame_index;
|
||||
|
||||
Reference in new issue
Block a user