From 996bee7eb65d8f742a6b29a87bccfaaccb615668 Mon Sep 17 00:00:00 2001 From: David Howden Date: Sat, 5 Mar 2016 16:17:11 +1100 Subject: [PATCH] Fix panic when picture isn't properly parsed. See issue #19. --- mp4.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mp4.go b/mp4.go index be31261..6b64014 100644 --- a/mp4.go +++ b/mp4.go @@ -310,5 +310,6 @@ func (m metadataMP4) Picture() *Picture { if !ok { return nil } - return v.(*Picture) + p, _ := v.(*Picture) + return p }