On 05/07/16 22:22, Vittorio Giovara wrote:
> ---
>  libavcodec/h2645_parse.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
> index defe001..cd7440a 100644
> --- a/libavcodec/h2645_parse.c
> +++ b/libavcodec/h2645_parse.c
> @@ -215,7 +215,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t 
> *buf, int length,
>              length -= nal_length_size;
>  
>              if (extract_length > length) {
> -                av_log(logctx, AV_LOG_ERROR, "Invalid NAL unit size.\n");
> +                av_log(logctx, AV_LOG_ERROR,
> +                       "Invalid NAL unit size (%d > %d).\n",
> +                       extract_length, length);
>                  return AVERROR_INVALIDDATA;
>              }
>          } else {
> 

Sounds good.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to