avformat/mov: set correct error code in mov_read_custom
authorPan Bian <bianpan2016@163.com>
Mon, 27 Nov 2017 03:12:56 +0000 (11:12 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Nov 2017 20:42:48 +0000 (21:42 +0100)
commit3f81259f337ba57ab1a722566c8d8122dc705823
treeb3cc13fb2981dd9d32036959bacdd055f04d821c
parent62f7f40caa70212cd017a66d514fc64f24a3adbc
avformat/mov: set correct error code in mov_read_custom

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 <bianpan2016@163.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c