mirror of https://github.com/mpv-player/mpv
reget_buffer() support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11527 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8739637877
commit
255e922fb6
|
@ -181,7 +181,7 @@ static int init(sh_video_t *sh){
|
|||
ctx->avctx = avcodec_alloc_context();
|
||||
avctx = ctx->avctx;
|
||||
|
||||
#if LIBAVCODEC_BUILD >= 4691
|
||||
#if LIBAVCODEC_BUILD >= 4691 && LIBAVCODEC_BUILD <= 4692
|
||||
if(lavc_codec->capabilities&CODEC_CAP_CR)
|
||||
avctx->cr_available = 1;
|
||||
#endif
|
||||
|
@ -202,6 +202,9 @@ static int init(sh_video_t *sh){
|
|||
avctx->flags|= CODEC_FLAG_EMU_EDGE;
|
||||
avctx->get_buffer= get_buffer;
|
||||
avctx->release_buffer= release_buffer;
|
||||
#if LIBAVCODEC_BUILD >= 4693
|
||||
avctx->reget_buffer= get_buffer;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CODEC_FLAG_NOT_TRUNCATED
|
||||
|
|
Loading…
Reference in New Issue