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