comparison flvdec.c @ 652:b47948262721 libavformat

support discarding uninterresting packets
author michael
date Sat, 22 Jan 2005 13:36:02 +0000
parents 7dbdbe073bcd
children 54d87ed9b3e4
comparison
equal deleted inserted replaced
651:6a5ba24b2c6b 652:b47948262721
104 104
105 av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */ 105 av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */
106 st->codec.frame_rate_base= 1; 106 st->codec.frame_rate_base= 1;
107 st->codec.frame_rate= 1000; 107 st->codec.frame_rate= 1000;
108 } 108 }
109 if(st->discard){
110 url_fskip(&s->pb, size);
111 continue;
112 }
109 break; 113 break;
110 } 114 }
111 115
112 if(is_audio){ 116 if(is_audio){
113 if(st->codec.sample_rate == 0){ 117 if(st->codec.sample_rate == 0){