comparison libmpcodecs/vd_ffmpeg.c @ 10086:2002da982194

passing ImageDesc (stsd) to ffsvq3
author michael
date Sat, 10 May 2003 00:53:14 +0000
parents 312eb2923169
children 4385101cc89c
comparison
equal deleted inserted replaced
10085:f3bc060a1731 10086:2002da982194
248 )) 248 ))
249 { 249 {
250 avctx->extradata_size = sh->bih->biSize-sizeof(BITMAPINFOHEADER); 250 avctx->extradata_size = sh->bih->biSize-sizeof(BITMAPINFOHEADER);
251 avctx->extradata = malloc(avctx->extradata_size); 251 avctx->extradata = malloc(avctx->extradata_size);
252 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); 252 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size);
253 }
254 if (sh->ImageDesc &&
255 sh->format == mmioFOURCC('S','V','Q','3')){
256 avctx->extradata_size = *(int*)sh->ImageDesc;
257 avctx->extradata = malloc(avctx->extradata_size);
258 memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
253 } 259 }
254 260
255 if(sh->bih) 261 if(sh->bih)
256 avctx->bits_per_sample= sh->bih->biBitCount; 262 avctx->bits_per_sample= sh->bih->biBitCount;
257 263