comparison libmpcodecs/ve_lavc.c @ 25962:afa125da85cf

typo fix: inited --> initialized
author diego
date Thu, 14 Feb 2008 14:23:55 +0000
parents 9ecc80a7e56f
children 1318e956c092
comparison
equal deleted inserted replaced
25961:354ad909efcf 25962:afa125da85cf
34 #include <ffmpeg/avcodec.h> 34 #include <ffmpeg/avcodec.h>
35 #else 35 #else
36 #include "libavcodec/avcodec.h" 36 #include "libavcodec/avcodec.h"
37 #endif 37 #endif
38 38
39 extern int avcodec_inited; 39 extern int avcodec_initialized;
40 40
41 /* video options */ 41 /* video options */
42 static char *lavc_param_vcodec = "mpeg4"; 42 static char *lavc_param_vcodec = "mpeg4";
43 static int lavc_param_vbitrate = -1; 43 static int lavc_param_vbitrate = -1;
44 static int lavc_param_vrate_tolerance = 1000*8; 44 static int lavc_param_vrate_tolerance = 1000*8;
1017 mux_v->bih->biCompression = mmioFOURCC('h', '2', '6', '4'); 1017 mux_v->bih->biCompression = mmioFOURCC('h', '2', '6', '4');
1018 else 1018 else
1019 mux_v->bih->biCompression = mmioFOURCC(lavc_param_vcodec[0], 1019 mux_v->bih->biCompression = mmioFOURCC(lavc_param_vcodec[0],
1020 lavc_param_vcodec[1], lavc_param_vcodec[2], lavc_param_vcodec[3]); /* FIXME!!! */ 1020 lavc_param_vcodec[1], lavc_param_vcodec[2], lavc_param_vcodec[3]); /* FIXME!!! */
1021 1021
1022 if (!avcodec_inited){ 1022 if (!avcodec_initialized){
1023 avcodec_init(); 1023 avcodec_init();
1024 avcodec_register_all(); 1024 avcodec_register_all();
1025 avcodec_inited=1; 1025 avcodec_initialized=1;
1026 } 1026 }
1027 1027
1028 vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name(lavc_param_vcodec); 1028 vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name(lavc_param_vcodec);
1029 if (!vf->priv->codec) { 1029 if (!vf->priv->codec) {
1030 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, lavc_param_vcodec); 1030 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, lavc_param_vcodec);