diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2004-05-23 16:34:42 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2004-05-23 16:34:42 +0000 |
commit | 62224c37f0ec06533a8267b84d08e368ccf889f0 (patch) | |
tree | 6e20bafaa9961a965a61aeedf20f32f81cbfe3cb /src | |
parent | 0f850afbe4ddc8ce5d561abf676d3a1bd8afa7ae (diff) | |
download | xine-lib-62224c37f0ec06533a8267b84d08e368ccf889f0.tar.gz xine-lib-62224c37f0ec06533a8267b84d08e368ccf889f0.tar.bz2 |
NULL isn't a good default for a pointer ;) Fixes RV10 and RV20 decoding
CVS patchset: 6582
CVS date: 2004/05/23 16:34:42
Diffstat (limited to 'src')
-rw-r--r-- | src/libffmpeg/video_decoder.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index 5c03b6716..81ee9cb28 100644 --- a/src/libffmpeg/video_decoder.c +++ b/src/libffmpeg/video_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: video_decoder.c,v 1.17 2004/05/12 07:41:43 tmattern Exp $ + * $Id: video_decoder.c,v 1.18 2004/05/23 16:34:42 jstembridge Exp $ * * xine video decoder plugin using ffmpeg * @@ -859,7 +859,7 @@ static void ff_check_bufsize (ff_video_decoder_t *this, int size) { static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { ff_video_decoder_t *this = (ff_video_decoder_t *) this_gen; int i, codec_type; - uint8_t *ffbuf = NULL; + uint8_t *ffbuf = this->buf; lprintf ("processing packet type = %08x, len = %d, decoder_flags=%08x\n", buf->type, buf->size, buf->decoder_flags); @@ -994,7 +994,6 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { ff_check_bufsize(this, this->size + buf->size); xine_fast_memcpy (&this->buf[this->size], buf->content, buf->size); this->size += buf->size; - ffbuf = this->buf; lprintf("accumulate data into this->buf\n"); } } |