summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-12-28 09:50:49 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-12-28 09:50:49 +0000
commit475ca40c8537d77b3d14954c0b90b6f68c06c329 (patch)
tree584e8732f72ba4ca4ddd3f661769e389bd2f8631 /src
parent4cab3ea662850164ad0378a624a88adf54ee0aa9 (diff)
downloadxine-lib-475ca40c8537d77b3d14954c0b90b6f68c06c329.tar.gz
xine-lib-475ca40c8537d77b3d14954c0b90b6f68c06c329.tar.bz2
Fix segmentation fault in QuickTime binary codecs
CVS patchset: 3705 CVS date: 2002/12/28 09:50:49
Diffstat (limited to 'src')
-rw-r--r--src/libw32dll/qt_decoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libw32dll/qt_decoder.c b/src/libw32dll/qt_decoder.c
index 9175e1b3c..80a0e7f1d 100644
--- a/src/libw32dll/qt_decoder.c
+++ b/src/libw32dll/qt_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: qt_decoder.c,v 1.3 2002/12/21 12:56:46 miguelfreitas Exp $
+ * $Id: qt_decoder.c,v 1.4 2002/12/28 09:50:49 esnel Exp $
*
* quicktime video/audio decoder plugin, using win32 dlls
* most of this code comes directly from MPlayer
@@ -339,10 +339,10 @@ static void qta_init_driver (qta_decoder_t *this, buf_element_t *buf) {
return;
}
- if (buf->size > 0x48) {
+ if (buf->decoder_info[2] > 0x48) {
error = this->SoundConverterSetInfo (this->myConverter,
siDecompressionParams,
- buf->content + 0x48);
+ ((unsigned char *)buf->decoder_info_ptr[2]) + 0x48);
#ifdef LOG
printf ("qt_audio: SoundConverterSetInfo:%i\n",error);
#endif
@@ -871,8 +871,8 @@ static void qtv_init_driver (qtv_decoder_t *this, buf_element_t *buf) {
#endif
{
- uint8_t *stdata = buf->content + 20;
- int stdata_len = buf->size - 24;
+ uint8_t *stdata = ((unsigned char *)buf->decoder_info_ptr[2]) + 20;
+ int stdata_len = buf->decoder_info[2] - 24;
id=malloc (8+stdata_len) ; /* trak->stdata_len); */
id->idSize = 8+stdata_len;