Browse Source

Merge commit '31931520df35a6f9606fe8293c8a39e2d1fabedf'

* commit '31931520df35a6f9606fe8293c8a39e2d1fabedf':
  mov: Do not allow updating the time scale after it has been set

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
13eed267f8
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/mov.c

+ 5
- 0
libavformat/mov.c View File

@@ -836,6 +836,11 @@ static int mov_read_mdhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
st = c->fc->streams[c->fc->nb_streams-1];
sc = st->priv_data;

if (sc->time_scale) {
av_log(c->fc, AV_LOG_ERROR, "Multiple mdhd?\n");
return AVERROR_INVALIDDATA;
}

version = avio_r8(pb);
if (version > 1) {
avpriv_request_sample(c->fc, "Version %d", version);


Loading…
Cancel
Save