comparison vc1test.c @ 5196:641bd7b1c746 libavformat

Do not set 0 FPS in VC-1 test stream format demuxer.
author kostya
date Tue, 15 Sep 2009 16:36:53 +0000
parents 006ff72fcb67
children 536e5527c1e0
comparison
equal deleted inserted replaced
5195:006ff72fcb67 5196:641bd7b1c746
71 url_fskip(pb, 8); 71 url_fskip(pb, 8);
72 fps = get_le32(pb); 72 fps = get_le32(pb);
73 if(fps == 0xFFFFFFFF) 73 if(fps == 0xFFFFFFFF)
74 av_set_pts_info(st, 32, 1, 1000); 74 av_set_pts_info(st, 32, 1, 1000);
75 else{ 75 else{
76 if (!fps) {
77 av_log(s, AV_LOG_ERROR, "Zero FPS specified, defaulting to 1 FPS\n");
78 fps = 1;
79 }
76 av_set_pts_info(st, 24, 1, fps); 80 av_set_pts_info(st, 24, 1, fps);
77 st->duration = frames; 81 st->duration = frames;
78 } 82 }
79 83
80 return 0; 84 return 0;