diff options
author | 2004-09-14 16:57:37 +0000 | |
---|---|---|
committer | 2004-09-14 16:57:37 +0000 | |
commit | bb0ca7d6196ff4b7be56bfe0a274ecfcbf5e7bcb (patch) | |
tree | 8cc3bdf0426dd16e999219b14275d5642b8c70ea /libmpcodecs | |
parent | 49bc2466076f14035e1d7a09241247f0f9964291 (diff) |
fix compile on gcc 2.95.3
patch send by Jan Knutar <jknutar_at_nic_dot_fi>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13335 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_x264.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index f58be50496..4c2cd11fe8 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -269,6 +269,7 @@ static int put_image(struct vf_instance_s *vf, mp_image_t *mpi) int i_nal; x264_nal_t *nal; int i; + int i_size = 0; int csp=mod->pic.img.i_csp; memset(&mod->pic, 0, sizeof(x264_picture_t)); @@ -285,7 +286,6 @@ static int put_image(struct vf_instance_s *vf, mp_image_t *mpi) return 0; } - int i_size = 0; for(i=0; i < i_nal; i++) { int i_data = mod->mux->buffer_size - i_size; i_size += x264_nal_encode(mod->mux->buffer + i_size, &i_data, 1, &nal[i]); @@ -305,6 +305,8 @@ static void uninit(struct vf_instance_s *vf) } static int vf_open(vf_instance_t *vf, char *args) { + h264_module_t *mod; + vf->config = config; vf->control = control; vf->query_format = query_format; @@ -312,7 +314,7 @@ static int vf_open(vf_instance_t *vf, char *args) { vf->uninit = uninit; vf->priv = malloc(sizeof(h264_module_t)); - h264_module_t *mod=(h264_module_t*)vf->priv; + mod=(h264_module_t*)vf->priv; mod->mux = (muxer_stream_t*)args; mod->mux->bih = malloc(sizeof(BITMAPINFOHEADER)); memset(mod->mux->bih, 0, sizeof(BITMAPINFOHEADER)); |