Revision fefe43ff

View differences:

libavformat/mov.c
308 308

  
309 309
static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
310 310
{
311
    AVStream *st = c->fc->streams[c->fc->nb_streams-1];
311
    AVStream *st;
312 312
    uint32_t type;
313 313
    uint32_t ctype;
314 314

  
315
    if (c->fc->nb_streams < 1) // meta before first trak
316
        return 0;
317

  
318
    st = c->fc->streams[c->fc->nb_streams-1];
319

  
315 320
    get_byte(pb); /* version */
316 321
    get_be24(pb); /* flags */
317 322

  

Also available in: Unified diff