Mercurial > mplayer.hg
comparison libmpcodecs/vf_spp.c @ 31959:f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
Vlad Seryakov, vseryakov gmail com
author | diego |
---|---|
date | Sat, 04 Sep 2010 08:11:31 +0000 |
parents | a972c1a4a012 |
children | 8fa2f43cb760 |
comparison
equal
deleted
inserted
replaced
31958:4cccb69779ef | 31959:f957f330aa6d |
---|---|
47 #undef malloc | 47 #undef malloc |
48 | 48 |
49 #include "img_format.h" | 49 #include "img_format.h" |
50 #include "mp_image.h" | 50 #include "mp_image.h" |
51 #include "vf.h" | 51 #include "vf.h" |
52 #include "vd_ffmpeg.h" | |
52 #include "libvo/fastmemcpy.h" | 53 #include "libvo/fastmemcpy.h" |
53 | 54 |
54 #define XMIN(a,b) ((a) < (b) ? (a) : (b)) | 55 #define XMIN(a,b) ((a) < (b) ? (a) : (b)) |
55 | 56 |
56 //===========================================================================// | 57 //===========================================================================// |
573 vf->uninit=uninit; | 574 vf->uninit=uninit; |
574 vf->control= control; | 575 vf->control= control; |
575 vf->priv=malloc(sizeof(struct vf_priv_s)); | 576 vf->priv=malloc(sizeof(struct vf_priv_s)); |
576 memset(vf->priv, 0, sizeof(struct vf_priv_s)); | 577 memset(vf->priv, 0, sizeof(struct vf_priv_s)); |
577 | 578 |
578 avcodec_init(); | 579 init_avcodec(); |
579 | 580 |
580 vf->priv->avctx= avcodec_alloc_context(); | 581 vf->priv->avctx= avcodec_alloc_context(); |
581 dsputil_init(&vf->priv->dsp, vf->priv->avctx); | 582 dsputil_init(&vf->priv->dsp, vf->priv->avctx); |
582 | 583 |
583 vf->priv->log2_count= 3; | 584 vf->priv->log2_count= 3; |