Mercurial > libavcodec.hg
comparison svq1.c @ 4228:1cffc7036079 libavcodec
fix sigfpe with intra only encoding
author | bcoudurier |
---|---|
date | Wed, 22 Nov 2006 13:24:58 +0000 |
parents | c8c591fe26f8 |
children | 304255e80196 |
comparison
equal
deleted
inserted
replaced
4227:ef1d382309e5 | 4228:1cffc7036079 |
---|---|
1353 s->last_picture= temp; | 1353 s->last_picture= temp; |
1354 | 1354 |
1355 init_put_bits(&s->pb, buf, buf_size); | 1355 init_put_bits(&s->pb, buf, buf_size); |
1356 | 1356 |
1357 *p = *pict; | 1357 *p = *pict; |
1358 p->pict_type = avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE; | 1358 p->pict_type = avctx->gop_size && avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE; |
1359 p->key_frame = p->pict_type == I_TYPE; | 1359 p->key_frame = p->pict_type == I_TYPE; |
1360 | 1360 |
1361 svq1_write_header(s, p->pict_type); | 1361 svq1_write_header(s, p->pict_type); |
1362 for(i=0; i<3; i++){ | 1362 for(i=0; i<3; i++){ |
1363 if(svq1_encode_plane(s, i, | 1363 if(svq1_encode_plane(s, i, |