[FFmpeg-devel] [PATCH] lavf/utils: change truncating packet log to a warning

Rostislav Pehlivanov atomnuker at gmail.com
Wed Oct 3 12:03:03 EEST 2018


On Sun, 30 Sep 2018 at 06:08, Rostislav Pehlivanov <atomnuker at gmail.com>
wrote:

> Some scene files do this intentionally for the sake of having a nice
> checksum.
> ---
>  libavformat/utils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index c973a7e0c5..924b99f6d4 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -257,7 +257,7 @@ int ffio_limit(AVIOContext *s, int size)
>          }
>
>          if (s->maxsize>= 0 && remaining+1 < size) {
> -            av_log(NULL, remaining ? AV_LOG_ERROR : AV_LOG_DEBUG,
> "Truncating packet of size %d to %"PRId64"\n", size, remaining+1);
> +            av_log(NULL, remaining ? AV_LOG_WARNING : AV_LOG_DEBUG,
> "Truncating packet of size %d to %"PRId64"\n", size, remaining+1);
>              size = remaining+1;
>          }
>      }
> --
> 2.19.0
>
>
Ping?


More information about the ffmpeg-devel mailing list