Commit 4101f87d authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

wavpack: Fix possible underflow of unsigned integer variable

parent 9d5e5ea5
......@@ -78,9 +78,10 @@ gst_wavpack_stream_reader_push_back_byte (void *id, int c)
GST_DEBUG ("Pushing back one byte: 0x%x", c);
if (rid->position == 0)
return rid->position;
rid->position -= 1;
if (rid->position < 0)
rid->position = 0;
return rid->position;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment