Mercurial > mplayer.hg
changeset 13334:04f7b5e75785
fix compile on gcc 2.95.3
patch send by Jan Knutar <jknutar_at_nic_dot_fi>
author | iive |
---|---|
date | Tue, 14 Sep 2004 16:57:37 +0000 |
parents | 5d4910f6aa79 |
children | 6c002b4462ae |
files | libmpcodecs/ve_x264.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c Mon Sep 13 21:21:48 2004 +0000 +++ b/libmpcodecs/ve_x264.c Tue Sep 14 16:57:37 2004 +0000 @@ -269,6 +269,7 @@ 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 @@ 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 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 @@ 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));