On 28/03/14 12:11, Nidhi Makhijani wrote:
> ---
>  libavformat/nutdec.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
> index 6328549..ea8c65c 100644
> --- a/libavformat/nutdec.c
> +++ b/libavformat/nutdec.c
> @@ -326,6 +326,8 @@ static int decode_main_header(NUTContext *nut)
>      }
>  
>      nut->stream = av_mallocz(sizeof(StreamContext) * stream_count);
> +    if (!nut->stream)
> +      return AVERROR(ENOMEM);
>      for (i = 0; i < stream_count; i++)
>          avformat_new_stream(s, NULL);
>  
> 


Please read https://wiki.libav.org/CodingStyle

the indentation is wrong.

(this patch and most of the other look right, thanks for spotting)

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

Reply via email to