summaryrefslogtreecommitdiff
blob: 50b6d0e57bd27e02832c267a564ef54cdcbff370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: mp4atom.h
===================================================================
RCS file: /vws/pan/mpeg4ip/lib/mp4v2/mp4atom.h,v
retrieving revision 1.30
diff -c -w -r1.30 mp4atom.h
*** mp4atom.h	5 Dec 2001 21:11:20 -0000	1.30
--- mp4atom.h	3 Dec 2003 21:56:26 -0000
***************
*** 88,94 ****
  		return m_type;
  	};
  	void SetType(const char* type) {
! 		if (type) {
  			ASSERT(strlen(type) == 4);
  			memcpy(m_type, type, 4);
  			m_type[4] = '\0';
--- 88,94 ----
  		return m_type;
  	};
  	void SetType(const char* type) {
! 		if (type && *type != '\0') {
  			ASSERT(strlen(type) == 4);
  			memcpy(m_type, type, 4);
  			m_type[4] = '\0';