Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 8264:1f3708389d0a
10l (broken ffmpeg12)
author | michael |
---|---|
date | Sun, 24 Nov 2002 11:28:25 +0000 |
parents | d7bc284a2b4a |
children | ff0bddb59e81 |
comparison
equal
deleted
inserted
replaced
8263:442ea8b6733c | 8264:1f3708389d0a |
---|---|
247 avctx->extradata = malloc(avctx->extradata_size); | 247 avctx->extradata = malloc(avctx->extradata_size); |
248 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); | 248 memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size); |
249 } | 249 } |
250 | 250 |
251 #if LIBAVCODEC_BUILD >= 4639 | 251 #if LIBAVCODEC_BUILD >= 4639 |
252 avctx->bits_per_sample= sh->bih->biBitCount; | 252 if(sh->bih) |
253 avctx->bits_per_sample= sh->bih->biBitCount; | |
253 #endif | 254 #endif |
254 | 255 |
255 /* open it */ | 256 /* open it */ |
256 if (avcodec_open(avctx, lavc_codec) < 0) { | 257 if (avcodec_open(avctx, lavc_codec) < 0) { |
257 mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantOpenCodec); | 258 mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantOpenCodec); |