Re: [FFmpeg-devel] [PATCH 1/2] avformat/hnm: Check for extradata allocation failure

2020-03-22 Thread Michael Niedermayer
On Sat, Mar 21, 2020 at 10:21:02AM +0100, Paul B Mahol wrote: > lgtm will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Many things microsoft did are stupid, but not doing something just because microsoft did it is even more stupid. If everything ms

Re: [FFmpeg-devel] [PATCH 1/2] avformat/hnm: Check for extradata allocation failure

2020-03-21 Thread Paul B Mahol
lgtm On 3/21/20, Andreas Rheinhardt wrote: > and also add padding to it; moreover, don't use memcpy to write one byte > to extradata. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/hnm.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/libavformat/hnm.c

[FFmpeg-devel] [PATCH 1/2] avformat/hnm: Check for extradata allocation failure

2020-03-20 Thread Andreas Rheinhardt
and also add padding to it; moreover, don't use memcpy to write one byte to extradata. Signed-off-by: Andreas Rheinhardt --- libavformat/hnm.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/hnm.c b/libavformat/hnm.c index 40ef5c06ee..31221553a4 100644 ---