changeset 340:c7a67ac8e19c trunk

[svn] safety fix
author nenolod
date Sun, 25 Dec 2005 23:56:55 -0800
parents e1630c75175b
children 46271e2c9622
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/libmp4.c	Sun Dec 25 23:22:44 2005 -0800
+++ b/Plugins/Input/aac/src/libmp4.c	Sun Dec 25 23:56:55 2005 -0800
@@ -216,7 +216,8 @@
 		MP4GetMetadataYear(mp4file, &tmpval);
 		MP4GetMetadataGenre(mp4file, &input->genre);
 
-		input->year = atoi(tmpval);
+		if (tmpval)
+			input->year = atoi(tmpval);
 
 		input->file_name = g_path_get_basename(filename);
 		input->file_path = g_path_get_dirname(filename);