[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.136,1.137
Baptiste Coudurier CVS
bcoudurier
Sun Mar 26 18:54:56 CEST 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv26308/libavformat
Modified Files:
mov.c
Log Message:
add mp3on4 detection, fix red.mp4
Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -d -r1.136 -r1.137
--- mov.c 24 Mar 2006 17:03:49 -0000 1.136
+++ mov.c 26 Mar 2006 16:54:53 -0000 1.137
@@ -600,6 +600,10 @@
if (st->codec->extradata) {
get_buffer(pb, st->codec->extradata, len);
st->codec->extradata_size = len;
+ /* from mplayer */
+ if ((*(uint8_t *)st->codec->extradata >> 3) == 29) {
+ st->codec->codec_id = CODEC_ID_MP3ON4;
+ }
}
}
}
@@ -1134,11 +1138,17 @@
if(st->codec->codec_type==CODEC_TYPE_AUDIO && st->codec->sample_rate==0 && sc->time_scale>1) {
st->codec->sample_rate= sc->time_scale;
}
+
+ switch (st->codec->codec_id) {
#ifdef CONFIG_FAAD
- if(st->codec->codec_id ==CODEC_ID_AAC) {
- st->codec->sample_rate= 0; /* let faad init parameters properly */
- }
+ case CODEC_ID_AAC:
#endif
+ case CODEC_ID_MP3ON4:
+ st->codec->sample_rate= 0; /* let decoder init parameters properly */
+ break;
+ default:
+ break;
+ }
return 0;
}
More information about the ffmpeg-cvslog
mailing list