On 20/10/14 15:11, Vittorio Giovara wrote:
> CC: [email protected]
> Bug-Id: CID 703721
> ---
>  libavformat/nutenc.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
> index b68e00e..90af69d 100644
> --- a/libavformat/nutenc.c
> +++ b/libavformat/nutenc.c
> @@ -906,7 +906,10 @@ static int nut_write_packet(AVFormatContext *s, AVPacket 
> *pkt)
>              frame_code  = i;
>          }
>      }
> -    assert(frame_code != -1);
> +
> +    if (frame_code < 0)
> +        return AVERROR_INVALIDDATA;
> +
>      fc           = &nut->frame_code[frame_code];
>      flags        = fc->flags;
>      needed_flags = get_needed_flags(nut, nus, fc, pkt);
> 

AVERROR_BUG.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to