summaryrefslogtreecommitdiffstats
path: root/thirdparties/win32/include/libavutil/fifo.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/win32/include/libavutil/fifo.h')
-rwxr-xr-xthirdparties/win32/include/libavutil/fifo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/thirdparties/win32/include/libavutil/fifo.h b/thirdparties/win32/include/libavutil/fifo.h
index 849b9a6..f56149b 100755
--- a/thirdparties/win32/include/libavutil/fifo.h
+++ b/thirdparties/win32/include/libavutil/fifo.h
@@ -134,10 +134,12 @@ void av_fifo_drain(AVFifoBuffer *f, int size);
static inline uint8_t *av_fifo_peek2(const AVFifoBuffer *f, int offs)
{
uint8_t *ptr = f->rptr + offs;
- if (ptr >= f->end)
+ if (ptr >= f->end) {
ptr = f->buffer + (ptr - f->end);
- else if (ptr < f->buffer)
+ }
+ else if (ptr < f->buffer) {
ptr = f->end - (f->buffer - ptr);
+ }
return ptr;
}
OpenPOWER on IntegriCloud