|
|
|
@ -187,7 +187,7 @@ static int encode_bitstream(FlashSVContext *s, AVFrame *p, uint8_t *buf, |
|
|
|
|
|
|
|
|
|
bytestream_put_be16(&ptr, (unsigned int) zsize); |
|
|
|
|
buf_pos += zsize + 2; |
|
|
|
|
//av_log(avctx, AV_LOG_ERROR, "buf_pos = %d\n", buf_pos);
|
|
|
|
|
av_dlog(avctx, "buf_pos = %d\n", buf_pos); |
|
|
|
|
} else { |
|
|
|
|
pred_blocks++; |
|
|
|
|
bytestream_put_be16(&ptr, 0); |
|
|
|
@ -266,7 +266,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, |
|
|
|
|
p->pict_type = AV_PICTURE_TYPE_I; |
|
|
|
|
p->key_frame = 1; |
|
|
|
|
s->last_key_frame = avctx->frame_number; |
|
|
|
|
av_log(avctx, AV_LOG_DEBUG, "Inserting key frame at frame %d\n", avctx->frame_number); |
|
|
|
|
av_dlog(avctx, "Inserting keyframe at frame %d\n", avctx->frame_number); |
|
|
|
|
} else { |
|
|
|
|
p->pict_type = AV_PICTURE_TYPE_P; |
|
|
|
|
p->key_frame = 0; |
|
|
|
|