Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 10131:4385101cc89c
FFASV1
author | michael |
---|---|
date | Mon, 19 May 2003 13:40:50 +0000 |
parents | 2002da982194 |
children | a339c588ddcd |
comparison
equal
deleted
inserted
replaced
10130:e1deeb0c30e3 | 10131:4385101cc89c |
---|---|
242 } | 242 } |
243 if (sh->bih && (sh->bih->biSize != sizeof(BITMAPINFOHEADER)) && | 243 if (sh->bih && (sh->bih->biSize != sizeof(BITMAPINFOHEADER)) && |
244 (sh->format == mmioFOURCC('M','4','S','2') || | 244 (sh->format == mmioFOURCC('M','4','S','2') || |
245 sh->format == mmioFOURCC('M','P','4','S') || | 245 sh->format == mmioFOURCC('M','P','4','S') || |
246 sh->format == mmioFOURCC('H','F','Y','U') || | 246 sh->format == mmioFOURCC('H','F','Y','U') || |
247 sh->format == mmioFOURCC('W','M','V','2') | 247 sh->format == mmioFOURCC('W','M','V','2') || |
248 sh->format == mmioFOURCC('A','S','V','1') || | |
249 sh->format == mmioFOURCC('V','S','S','H') | |
248 )) | 250 )) |
249 { | 251 { |
250 avctx->extradata_size = sh->bih->biSize-sizeof(BITMAPINFOHEADER); | 252 avctx->extradata_size = sh->bih->biSize-sizeof(BITMAPINFOHEADER); |
251 avctx->extradata = malloc(avctx->extradata_size); | 253 avctx->extradata = malloc(avctx->extradata_size); |
252 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); | 254 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); |