Changeset 1888bd1b in ffmpeg


Ignore:
Timestamp:
Dec 20, 2011, 10:32:59 AM (13 years ago)
Author:
Tomas Härdin <tomas.hardin@codemill.se>
Branches:
master
Children:
5b718009
Parents:
54cbbdd2
git-author:
Tomas Härdin <tomas.hardin@codemill.se> (12/20/11 10:22:23)
git-committer:
Tomas Härdin <tomas.hardin@codemill.se> (12/20/11 10:32:59)
Message:

mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()

Only the OPAtom demuxing logic is guaranteed to have index tables, meaning OP1a
files that lack an index would cause SIGSEGV.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavformat/mxfdec.c

    r54cbbdd2 r1888bd1b  
    17151715    MXFIndexTable *t = &mxf->index_tables[0];
    17161716
     1717    /* this is called from the OP1a demuxing logic, which means there may be no index tables */
     1718    if (mxf->nb_index_tables <= 0)
     1719        return;
     1720
    17171721    /* find mxf->current_edit_unit so that the next edit unit starts ahead of pkt->pos */
    17181722    for (;;) {
     
    17961800
    17971801    /* OPAtom - clip wrapped demuxing */
     1802    /* NOTE: mxf_read_header() makes sure nb_index_tables > 0 for OPAtom */
    17981803    st = s->streams[0];
    17991804    t = &mxf->index_tables[0];
Note: See TracChangeset for help on using the changeset viewer.