Author: ayoung
Date: Thu Feb 4 01:40:51 2010
New Revision: 8453
URL: http://svn.slimdevices.com/jive?rev=8453&view=rev
Log:
bug 15608: Some m4a files encoded by Nero crash fab4
Check that second track is 'mp4a' or 'm4ae' when determining if HD-AAC.
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.c
7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.h
Modified: 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.c
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.c?rev=8453&r1=8452&r2=8453&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.c (original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.c Thu Feb 4 01:40:51
2010
@@ -710,6 +710,10 @@
*size = mp4->track[track].conf_size;
}
+int mp4_track_is_type(struct decode_mp4 *mp4, int track, const char *type) {
+ return strncmp(mp4->track[track].data_format, type, sizeof
(mp4->track[track].data_format)) == 0;
+}
+
void mp4_free(struct decode_mp4 *mp4)
{
Modified: 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.h
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.h?rev=8453&r1=8452&r2=8453&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.h (original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/src/audio/mp4.h Thu Feb 4 01:40:51
2010
@@ -34,3 +34,5 @@
u8_t *mp4_read(struct decode_mp4 *mp4, int track, size_t *len, bool_t
*streaming);
void mp4_track_conf(struct decode_mp4 *mp4, int track, u8_t **conf, size_t
*size);
void mp4_free(struct decode_mp4 *mp4);
+int mp4_track_is_type(struct decode_mp4 *mp4, int track, const char *type);
+
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins