[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.52,1.53
Atmosfear
atmos4 at mplayer.dev.hu
Sun Mar 24 03:38:23 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux parse_mp4.c,NONE,1.1 parse_mp4.h,NONE,1.1 Makefile,1.25,1.26 demux_mov.c,1.51,1.52 stheader.h,1.26,1.27 stream.h,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.53,1.54 parse_mp4.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv11773/libmpdemux
Modified Files:
demux_mov.c
Log Message:
eeh 10l, forgot malloc of esds struct.
Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- demux_mov.c 24 Mar 2002 02:25:41 -0000 1.52
+++ demux_mov.c 24 Mar 2002 02:38:20 -0000 1.53
@@ -704,9 +704,9 @@
int atom_len = char2int(trak->stdata,28);
switch(char2int(trak->stdata,32)) { // atom type
case MOV_FOURCC('e','s','d','s'): {
- esds_t *esds;
mp_msg(MSGT_DEMUX, MSGL_INFO, "MOV: Found MPEG4 audio Elementary Stream Descriptor atom (%d)!\n", atom_len);
if(atom_len >= 8) {
+ esds_t *esds = (esds_t *)malloc(sizeof(esds_t));
if(!mp4_parse_esds(&trak->stdata[36], atom_len-8, esds)) {
sh->i_bps = esds->avgBitrate/8;
@@ -716,6 +716,7 @@
sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
memcpy(sh->codecdata, esds->decoderConfig, sh->codecdata_len);
}
+ free(esds);
#if 0
{ FILE* f=fopen("esds.dat","wb");
fwrite(&trak->stdata[36],atom_len-8,1,f);
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux parse_mp4.c,NONE,1.1 parse_mp4.h,NONE,1.1 Makefile,1.25,1.26 demux_mov.c,1.51,1.52 stheader.h,1.26,1.27 stream.h,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.53,1.54 parse_mp4.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list