Commit d8ffdefb authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '029cf99c'

* commit '029cf99c':
  mov: Save number of stsd elements after stream extradata allocation

Mostly noop, see 8b43ee40Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 985bc8b4 029cf99c
......@@ -2332,8 +2332,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
int entries;
int ret, entries;
if (c->fc->nb_streams < 1)
return 0;
......@@ -2342,7 +2341,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
avio_r8(pb); /* version */
avio_rb24(pb); /* flags */
entries = avio_rb32(pb); /* entries */
entries = avio_rb32(pb);
if (entries <= 0) {
av_log(c->fc, AV_LOG_ERROR, "invalid STSD entries %d\n", entries);
......
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