Commit 9e8dff90 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Revert "mov: do not misreport empty stts"

Fixes ticket #578.

This reverts commit 30c3d976.
parent e60779b1
......@@ -1563,8 +1563,8 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
av_dlog(c->fc, "track[%i].stts.entries = %i\n",
c->fc->nb_streams-1, entries);
if (!entries || entries >= UINT_MAX / sizeof(*sc->stts_data))
return AVERROR(EINVAL);
if (entries >= UINT_MAX / sizeof(*sc->stts_data))
return -1;
sc->stts_data = av_malloc(entries * sizeof(*sc->stts_data));
if (!sc->stts_data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment