util/*FifoBuffer: migrate from WritableBuffer to std::span
This commit is contained in:

committed by
Max Kellermann

parent
570755f05a
commit
bb7be9a4cd
@@ -93,7 +93,7 @@ adts_find_frame(DecoderBuffer &buffer)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (buffer.Need(frame_length).IsNull()) {
|
||||
if (buffer.Need(frame_length).empty()) {
|
||||
/* not enough data; discard this frame to
|
||||
prevent a possible buffer overflow */
|
||||
buffer.Clear();
|
||||
|
Reference in New Issue
Block a user