diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-06-03 15:44:31 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-06-03 15:44:31 +0000 |
commit | 78985adfc5ff2f5e99aa8bbc9a1fff089bb9fc57 (patch) | |
tree | e81ac2ce0ebfde93c1e21da4104fb8d4f06f6e29 | |
parent | 603da375c6e015c5d954831714324041b0839049 (diff) | |
download | xine-lib-78985adfc5ff2f5e99aa8bbc9a1fff089bb9fc57.tar.gz xine-lib-78985adfc5ff2f5e99aa8bbc9a1fff089bb9fc57.tar.bz2 |
Some streams contain a first section with smaller video than the rest, so don't resize the frame buffer as this will lead to a segfault when the size increases
CVS patchset: 5004
CVS date: 2003/06/03 15:44:31
-rw-r--r-- | src/libreal/xine_decoder.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libreal/xine_decoder.c b/src/libreal/xine_decoder.c index 118b9dc09..bdf261d17 100644 --- a/src/libreal/xine_decoder.c +++ b/src/libreal/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.38 2003/05/29 00:23:53 jstembridge Exp $ + * $Id: xine_decoder.c,v 1.39 2003/06/03 15:44:31 jstembridge Exp $ * * thin layer to use real binary-only codecs in xine * @@ -397,8 +397,6 @@ static void realdec_decode_data (video_decoder_t *this_gen, buf_element_t *buf) this->height = transform_out[4]; this->frame_size = this->width * this->height; - this->frame_buffer = realloc(this->frame_buffer, - this->width * this->height * 3/2); this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->width; this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = this->height; |