Browse Source

h264_metadata: Fix clearing SEI payload in error case

Fixes CID 1419832, 1419835.
tags/n4.0
Mark Thompson 8 years ago
parent
commit
d792613bad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_metadata_bsf.c

+ 1
- 1
libavcodec/h264_metadata_bsf.c View File

@@ -372,7 +372,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;
}



Loading…
Cancel
Save