comparison libmpcodecs/vf_lavc.c @ 25962:afa125da85cf

typo fix: inited --> initialized
author diego
date Thu, 14 Feb 2008 14:23:55 +0000
parents 00fff9a3b735
children 1318e956c092
comparison
equal deleted inserted replaced
25961:354ad909efcf 25962:afa125da85cf
15 #include <ffmpeg/avcodec.h> 15 #include <ffmpeg/avcodec.h>
16 #else 16 #else
17 #include "libavcodec/avcodec.h" 17 #include "libavcodec/avcodec.h"
18 #endif 18 #endif
19 19
20 extern int avcodec_inited; 20 extern int avcodec_initialized;
21 21
22 struct vf_priv_s { 22 struct vf_priv_s {
23 unsigned char* outbuf; 23 unsigned char* outbuf;
24 int outbuf_size; 24 int outbuf_size;
25 AVCodecContext* context; 25 AVCodecContext* context;
125 vf->put_image=put_image; 125 vf->put_image=put_image;
126 vf->query_format=query_format; 126 vf->query_format=query_format;
127 vf->priv=malloc(sizeof(struct vf_priv_s)); 127 vf->priv=malloc(sizeof(struct vf_priv_s));
128 memset(vf->priv,0,sizeof(struct vf_priv_s)); 128 memset(vf->priv,0,sizeof(struct vf_priv_s));
129 129
130 if (!avcodec_inited){ 130 if (!avcodec_initialized){
131 avcodec_init(); 131 avcodec_init();
132 avcodec_register_all(); 132 avcodec_register_all();
133 avcodec_inited=1; 133 avcodec_initialized=1;
134 } 134 }
135 135
136 vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name("mpeg1video"); 136 vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name("mpeg1video");
137 if (!vf->priv->codec) { 137 if (!vf->priv->codec) {
138 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, "mpeg1video"); 138 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, "mpeg1video");