Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: propagate shift_data errors properly

2016-05-30 Thread Marton Balint
On Mon, 30 May 2016, Michael Niedermayer wrote: On Sun, May 29, 2016 at 05:17:13PM +0200, Marton Balint wrote: The second one is not explicitly needed, as res is not reset, but it is there for consistency. Signed-off-by: Marton Balint --- libavformat/movenc.c | 6 -- 1 file changed, 4 i

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: propagate shift_data errors properly

2016-05-30 Thread Michael Niedermayer
On Sun, May 29, 2016 at 05:17:13PM +0200, Marton Balint wrote: > The second one is not explicitly needed, as res is not reset, but it is there > for consistency. > > Signed-off-by: Marton Balint > --- > libavformat/movenc.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) LGTM if t

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: propagate shift_data errors properly

2016-05-29 Thread Carl Eugen Hoyos
Marton Balint passwd.hu> writes: > -res = shift_data(s); > +if ((res = shift_data(s)) < 0) It's not my code but "if (res < 0)" is imo easier to read, less error-prone and makes the patch smaller... Carl Eugen ___ ffmpeg-devel

[FFmpeg-devel] [PATCH 1/2] avformat/movenc: propagate shift_data errors properly

2016-05-29 Thread Marton Balint
The second one is not explicitly needed, as res is not reset, but it is there for consistency. Signed-off-by: Marton Balint --- libavformat/movenc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 49cd1bd..fbb659d 100644