Diego Biurrun <[email protected]> writes:

> ---
>  libavcodec/flashsvenc.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
> index 4eed7e7..ebc7da6 100644
> --- a/libavcodec/flashsvenc.c
> +++ b/libavcodec/flashsvenc.c
> @@ -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);

OK

> @@ -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;

I don't think the av_log call here has much of an overhead, so I don't
think it does any harm leaving it as is.  That said, the change looks
correct.  Do as you like.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to