Re: [FFmpeg-devel] [PATCH 2/2] swscale/swscale: add av_warn_unused_result to sws_init_context

2015-10-16 Thread Ganesh Ajjanagadde
On Fri, Oct 16, 2015 at 11:07 AM, Michael Niedermayer
 wrote:
> On Thu, Oct 15, 2015 at 09:46:28PM -0400, Ganesh Ajjanagadde wrote:
>> This should not trigger any warnings; but adds robustness.
>>
>> Signed-off-by: Ganesh Ajjanagadde 
>> ---
>>  libswscale/swscale.h | 1 +
>>  1 file changed, 1 insertion(+)
>
> LGTM

pushed, thanks.

>
> [...]
> --
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> No great genius has ever existed without some touch of madness. -- Aristotle
>
> ___
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH 2/2] swscale/swscale: add av_warn_unused_result to sws_init_context

2015-10-16 Thread Michael Niedermayer
On Thu, Oct 15, 2015 at 09:46:28PM -0400, Ganesh Ajjanagadde wrote:
> This should not trigger any warnings; but adds robustness.
> 
> Signed-off-by: Ganesh Ajjanagadde 
> ---
>  libswscale/swscale.h | 1 +
>  1 file changed, 1 insertion(+)

LGTM

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH 2/2] swscale/swscale: add av_warn_unused_result to sws_init_context

2015-10-15 Thread Ganesh Ajjanagadde
This should not trigger any warnings; but adds robustness.

Signed-off-by: Ganesh Ajjanagadde 
---
 libswscale/swscale.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index ff3f630..da9dd2e 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -150,6 +150,7 @@ struct SwsContext *sws_alloc_context(void);
  * @return zero or positive value on success, a negative value on
  * error
  */
+av_warn_unused_result
 int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, 
SwsFilter *dstFilter);
 
 /**
-- 
2.6.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel