[FFmpeg-devel] [PATCH V1] avutil/file: always set *size to zero if *bufptr is NULL

Michael Niedermayer michael at niedermayer.cc
Thu Aug 29 16:07:40 EEST 2019


On Thu, Aug 29, 2019 at 01:04:43AM +0800, Jun Zhao wrote:
> From: Jun Zhao <barryjzhao at tencent.com>
> 
> Always set *size to zero if *bufptr is NULL, it's more make sence.
> 
> fix #8095
> 
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
>  libavutil/file.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)

probably ok

maybe the av_file_unmap and av_file_map changes could be in seperate patches

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190829/4d51c224/attachment.sig>


More information about the ffmpeg-devel mailing list