nutdec: only copy the header if it exists
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Fri, 18 Dec 2015 16:24:09 +0000 (17:24 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Jan 2016 08:44:44 +0000 (09:44 +0100)
commit9cdddb93bb33c58a5d42239326bc5eae0067366a
treebae854be9d4d776eb7572cfacc3e29df0955eef0
parent8431629dd112874293380a6d8a852459fc1a76b6
nutdec: only copy the header if it exists

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

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/nutdec.c