/* For ff_codec_get_id(). */
#include "riff.h"
#include "isom.h"
-#include "rm.h"
+#include "rmsipr.h"
#include "matroska.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/mpeg4audio.h"
}
case 0x2: /* fixed-size lacing */
- if (size != (size / *laces) * size) {
+ if (size % (*laces)) {
res = AVERROR_INVALIDDATA;
break;
}
ret = matroska_parse_cluster(matroska);
}
- if (ret == AVERROR_INVALIDDATA) {
+ if (ret == AVERROR_INVALIDDATA && pkt->data) {
pkt->flags |= AV_PKT_FLAG_CORRUPT;
return 0;
}