changeset 13611:e0720270e0e1

too large extradata
author michael
date Mon, 11 Oct 2004 16:23:20 +0000
parents b79ee5bf2c9e
children c0bde085511c
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Mon Oct 11 15:48:18 2004 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Mon Oct 11 16:23:20 2004 +0000
@@ -347,7 +347,7 @@
 #endif
     if (sh->ImageDesc &&
 	 sh->format == mmioFOURCC('S','V','Q','3')){
-	avctx->extradata_size = *(int*)sh->ImageDesc;
+	avctx->extradata_size = (*(int*)sh->ImageDesc) - sizeof(int);
 	avctx->extradata = malloc(avctx->extradata_size);
 	memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
     }