Revision 4a030a1f

View differences:

libavformat/avidec.c
379 379
            get_le32(pb); /* initial frame */
380 380
            ast->scale = get_le32(pb);
381 381
            ast->rate = get_le32(pb);
382
            if(ast->scale && ast->rate){
383
            }else if(frame_period){
382
            if(!(ast->scale && ast->rate)){
383
            if(frame_period){
384 384
                ast->rate = 1000000;
385 385
                ast->scale = frame_period;
386 386
            }else{
387 387
                ast->rate = 25;
388 388
                ast->scale = 1;
389 389
            }
390
            }
390 391
            av_set_pts_info(st, 64, ast->scale, ast->rate);
391 392

  
392 393
            ast->cum_len=get_le32(pb); /* start */

Also available in: Unified diff