mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libeplayer3/writer/pcm.cpp: break potential infinite loop
Origin commit data
------------------
Branch: master
Commit: 9ac03e1046
Author: martii <m4rtii@gmx.de>
Date: 2014-05-24 (Sat, 24 May 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -311,8 +311,11 @@ bool WriterPCM::Write(AVPacket *packet, int64_t pts)
|
||||
break;
|
||||
}
|
||||
|
||||
if (packet->data)
|
||||
packet_size -= len;
|
||||
|
||||
if (!got_frame) {
|
||||
if (!packet->data)
|
||||
if (!packet->data || !packet_size)
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
@@ -338,9 +341,6 @@ bool WriterPCM::Write(AVPacket *packet, int64_t pts)
|
||||
}
|
||||
|
||||
pts = 0;
|
||||
|
||||
if (packet->data)
|
||||
packet_size -= len;
|
||||
}
|
||||
return !packet_size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user