Mercurial > audlegacy
comparison Plugins/Input/aac/libmp4v2/mp4atom.h @ 201:f2dc045d2327 trunk
[svn] libmp4v2 goes back to the future
author | chainsaw |
---|---|
date | Thu, 17 Nov 2005 14:01:18 -0800 |
parents | 0a2ad94e8607 |
children |
comparison
equal
deleted
inserted
replaced
200:094ef8a0a9fd | 201:f2dc045d2327 |
---|---|
94 const char* GetType() { | 94 const char* GetType() { |
95 return m_type; | 95 return m_type; |
96 }; | 96 }; |
97 void SetType(const char* type) { | 97 void SetType(const char* type) { |
98 if (type && *type != '\0') { | 98 if (type && *type != '\0') { |
99 ASSERT(strlen(type) == 4); | 99 // not needed ASSERT(strlen(type) == 4); |
100 memcpy(m_type, type, 4); | 100 memcpy(m_type, type, 4); |
101 m_type[4] = '\0'; | 101 m_type[4] = '\0'; |
102 } else { | 102 } else { |
103 memset(m_type, 0, 5); | 103 memset(m_type, 0, 5); |
104 } | 104 } |