comparison avidec.c @ 649:25825079f833 libavformat

1/0 fix
author michael
date Fri, 21 Jan 2005 23:38:09 +0000
parents 0b52743104ac
children c129846f7f02
comparison
equal deleted inserted replaced
648:340f1911cd54 649:25825079f833
252 get_le32(pb); /* initial frame */ 252 get_le32(pb); /* initial frame */
253 ast->scale = get_le32(pb); /* scale */ 253 ast->scale = get_le32(pb); /* scale */
254 ast->rate = get_le32(pb); 254 ast->rate = get_le32(pb);
255 if(!ast->rate) 255 if(!ast->rate)
256 ast->rate= 1; //wrong but better then 1/0 256 ast->rate= 1; //wrong but better then 1/0
257 if(!ast->scale)
258 ast->scale= 1; //wrong but better then 1/0
257 av_set_pts_info(st, 64, ast->scale, ast->rate); 259 av_set_pts_info(st, 64, ast->scale, ast->rate);
258 ast->start= get_le32(pb); /* start */ 260 ast->start= get_le32(pb); /* start */
259 length = get_le32(pb); /* length, in samples or bytes */ 261 length = get_le32(pb); /* length, in samples or bytes */
260 get_le32(pb); /* buffer size */ 262 get_le32(pb); /* buffer size */
261 get_le32(pb); /* quality */ 263 get_le32(pb); /* quality */