Fix panic when picture isn't properly parsed.

See issue #19.
This commit is contained in:
David Howden 2016-03-05 16:17:11 +11:00
parent a35ac09042
commit 996bee7eb6

3
mp4.go
View File

@ -310,5 +310,6 @@ func (m metadataMP4) Picture() *Picture {
if !ok {
return nil
}
return v.(*Picture)
p, _ := v.(*Picture)
return p
}