Unified · Split
| @@ -288,10 +288,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 287 unmodified lines | |||
| 288 | *buf++ = c->fmt; // format | 288 | *buf++ = c->fmt; // format |
| 289 | *buf++ = ZMBV_BLOCK; // block width | 289 | *buf++ = ZMBV_BLOCK; // block width |
| 290 | *buf++ = ZMBV_BLOCK; // block height | 290 | *buf++ = ZMBV_BLOCK; // block height |
| 291 | pkt->flags |= AV_PKT_FLAG_KEY; | ||
| 291 | } | 292 | } |
| 292 | memcpy(buf, c->comp_buf, c->zstream.total_out); | 293 | memcpy(buf, c->comp_buf, c->zstream.total_out); |
| 293 | 294 | ||
| 294 | pkt->flags |= AV_PKT_FLAG_KEY*keyframe; | ||
| 295 | *got_packet = 1; | 295 | *got_packet = 1; |
| 296 | 296 | ||
| 297 | return 0; | 297 | return 0; |