diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c
index fad093b629ac1942063159c7a3bfe2a0f713c0af..3c5c7abbda7daedbd1253038975915ff2880789b 100644
--- a/libavformat/oggparseogm.c
+++ b/libavformat/oggparseogm.c
@@ -106,7 +106,6 @@ ogm_header(AVFormatContext *s, int idx)
                 size -= 4;
             }
             if (size > 52) {
-                av_assert0(AV_INPUT_BUFFER_PADDING_SIZE <= 52);
                 size -= 52;
                 if (bytestream2_get_bytes_left(&p) < size)
                     return AVERROR_INVALIDDATA;