[MPlayer-cvslog] r35319 - trunk/libmpdemux/muxer.c
reimar
subversion at mplayerhq.hu
Wed Oct 31 21:58:39 CET 2012
Author: reimar
Date: Wed Oct 31 21:58:39 2012
New Revision: 35319
Log:
Remove another incorrect use of realloc_struct.
Modified:
trunk/libmpdemux/muxer.c
Modified: trunk/libmpdemux/muxer.c
==============================================================================
--- trunk/libmpdemux/muxer.c Wed Oct 31 21:56:41 2012 (r35318)
+++ trunk/libmpdemux/muxer.c Wed Oct 31 21:58:39 2012 (r35319)
@@ -132,14 +132,14 @@ void muxer_write_chunk(muxer_stream_t *s
}
else {
int num = s->muxer->muxbuf_num++;
- muxbuf_t *buf, *tmp;
+ muxbuf_t *buf;
- tmp = realloc_struct(s->muxer->muxbuf, (num+1), sizeof(muxbuf_t));
- if(!tmp) {
+ s->muxer->muxbuf = realloc_struct(s->muxer->muxbuf, (num+1), sizeof(muxbuf_t));
+ if(!s->muxer->muxbuf) {
+ s->muxer->muxbuf_num = 0;
mp_msg(MSGT_MUXER, MSGL_FATAL, MSGTR_MuxbufReallocErr);
return;
}
- s->muxer->muxbuf = tmp;
buf = s->muxer->muxbuf + num;
/* buffer this frame */
More information about the MPlayer-cvslog
mailing list