[libav-devel] [PATCH 09/14] h264_metadata: Fix clearing SEI payload in error case

Diego Biurrun diego at biurrun.de
Fri Nov 10 13:33:12 CET 2017


On Thu, Nov 09, 2017 at 01:07:51AM +0000, Mark Thompson wrote:
> ---
>  libavcodec/h264_metadata_bsf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

OK

> --- a/libavcodec/h264_metadata_bsf.c
> +++ b/libavcodec/h264_metadata_bsf.c
> @@ -368,7 +368,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
>                     "must be \"UUID+string\".\n");
>              err = AVERROR(EINVAL);
>          sei_fail:
> -            memset(payload, 0, sizeof(&payload));
> +            memset(payload, 0, sizeof(*payload));
>              goto fail;
>          }

Tsk, tsk, tsk, ...

Diego


More information about the libav-devel mailing list