aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-22 13:24:58 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-22 13:24:58 +0000
commitf85675605973e96ced1dff1f00d12a32f3f0a2fb (patch)
tree23830110da8ffeaffba455c9b84d9c4a59673c7c /libavcodec
parentd86b83f8ab8d9feec3322618eaabe96f03e46a40 (diff)
downloadffmpeg-f85675605973e96ced1dff1f00d12a32f3f0a2fb.tar.gz
fix sigfpe with intra only encoding
Originally committed as revision 7156 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index a167ac9c8f..957176e386 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1355,7 +1355,7 @@ static int svq1_encode_frame(AVCodecContext *avctx, unsigned char *buf,
init_put_bits(&s->pb, buf, buf_size);
*p = *pict;
- p->pict_type = avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE;
+ p->pict_type = avctx->gop_size && avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE;
p->key_frame = p->pict_type == I_TYPE;
svq1_write_header(s, p->pict_type);