Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: [email protected]
---
libavcodec/avpacket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 79123b1..274f293 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -68,7 +68,7 @@ static int packet_alloc(AVBufferRef **buf, int size)
return AVERROR(EINVAL);
av_buffer_realloc(buf, size + FF_INPUT_BUFFER_PADDING_SIZE);
- if (!buf)
+ if (!*buf)
return AVERROR(ENOMEM);
memset((*buf)->data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel