[FFmpeg-devel] [PATCH] avformat/latmenc: abort if no extradata is available

Paul B Mahol onemda at gmail.com
Tue Oct 15 18:00:55 EEST 2019


LGTM

On 10/15/19, James Almer <jamrial at gmail.com> wrote:
> Fixes ticket #8273.
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/latmenc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c
> index db867ebf1a..5ae677f5da 100644
> --- a/libavformat/latmenc.c
> +++ b/libavformat/latmenc.c
> @@ -176,7 +176,8 @@ static int latm_write_packet(AVFormatContext *s,
> AVPacket *pkt)
>                  if (ret < 0)
>                      return ret;
>                  memcpy(par->extradata, side_data, side_data_size);
> -            }
> +            } else
> +                return AVERROR_INVALIDDATA;
>          }
>      }
>
> --
> 2.23.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list