Re: [FFmpeg-devel] [FFmpeg-devel 1/2] avformat/mov: set correct error code in mov_read_custom

2017-11-28 Thread Michael Niedermayer
On Mon, Nov 27, 2017 at 11:12:56AM +0800, Pan Bian wrote: > In function mov_read_custom(), it returns 0 on the path that av_malloc() > returns a NULL pointer. 0 indicates success. An error code should be > assigned to ret. > > Signed-off-by: Pan Bian > --- >

[FFmpeg-devel] [FFmpeg-devel 1/2] avformat/mov: set correct error code in mov_read_custom

2017-11-26 Thread Pan Bian
In function mov_read_custom(), it returns 0 on the path that av_malloc() returns a NULL pointer. 0 indicates success. An error code should be assigned to ret. Signed-off-by: Pan Bian --- libavformat/mov.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git