diff --git a/libavformat/mov.c b/libavformat/mov.c index afbc16bd77..5a1191a197 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5465,6 +5465,10 @@ static int mov_read_st3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) av_log(c->fc, AV_LOG_ERROR, "Empty stereoscopic video box\n"); return AVERROR_INVALIDDATA; } + + if (sc->stereo3d) + return AVERROR_INVALIDDATA; + avio_skip(pb, 4); /* version + flags */ mode = avio_r8(pb);