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

Moritz Barsnick barsnick at gmx.net
Wed Nov 29 16:09:27 EET 2017


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)
> +        return AVERROR_INVALIDDATA;

This changes behavior for len == 6, right? Does it matter?

Moritz


More information about the ffmpeg-devel mailing list