Re: [FFmpeg-devel] [PATCH 1/5] avformat/avc: return an error in ff_isom_write_avcc if the buffer lenght is too small

2017-11-29 Thread James Almer
On 11/29/2017 11:09 AM, Moritz Barsnick wrote: > On Tue, Nov 28, 2017 at 22:42:59 -0300, James Almer wrote: >> Subject: avformat/avc: return an error in ff_isom_write_avcc if the buffer >> lenght is too small > > ^

Re: [FFmpeg-devel] [PATCH 1/5] avformat/avc: return an error in ff_isom_write_avcc if the buffer lenght is too small

2017-11-29 Thread Moritz Barsnick
On Tue, Nov 28, 2017 at 22:42:59 -0300, James Almer wrote: > Subject: avformat/avc: return an error in ff_isom_write_avcc if the buffer > lenght is too small ^ length > -if (len > 6) { > +if (len < 6) > +

[FFmpeg-devel] [PATCH 1/5] avformat/avc: return an error in ff_isom_write_avcc if the buffer lenght is too small

2017-11-28 Thread James Almer
Signed-off-by: James Almer --- libavformat/avc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/avc.c b/libavformat/avc.c index 094a95821f..7b32590778 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -105,7 +105,9 @@ int