nutdec: only copy the header if it exists
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 18 Dec 2015 14:18:47 +0000 (15:18 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 19 Dec 2015 11:30:59 +0000 (12:30 +0100)
commit9f82506c79874edd7b09707ab63d9e72078de8f9
treec64633dcdb5269ad44d94488eabe317fbeee6bea
parentae2ed20b5912b00866631e78049f165deb9f2fb2
nutdec: only copy the header if it exists

Fixes ubsan runtime error: null pointer passed as argument 2, which is
declared to never be null

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/nutdec.c