fix clang compiler warnings

This commit is contained in:
Stefano Pigozzi
2013-03-03 11:14:44 +01:00
parent 6944f2e8bb
commit 428a4243e9
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ mf_t* open_mf_pattern(char * filename)
#if defined(HAVE_GLOB) || defined(__MINGW32__) #if defined(HAVE_GLOB) || defined(__MINGW32__)
glob_t gg; glob_t gg;
int i; int i;
char * fname; char * fname = NULL;
mf_t * mf; mf_t * mf;
int error_count = 0; int error_count = 0;
int count = 0; int count = 0;

View File

@@ -53,7 +53,7 @@ float sub_fps = 0;
void *vo_spudec=NULL; void *vo_spudec=NULL;
void *vo_vobsub=NULL; void *vo_vobsub=NULL;
static const const struct osd_style_opts osd_style_opts_def = { static const struct osd_style_opts osd_style_opts_def = {
.font = "Sans", .font = "Sans",
.font_size = 45, .font_size = 45,
.color = {255, 255, 255, 255}, .color = {255, 255, 255, 255},

View File

@@ -161,7 +161,7 @@ static struct mp_imgfmt_desc get_avutil_fmt(enum PixelFormat fmt)
struct mp_imgfmt_desc desc = { struct mp_imgfmt_desc desc = {
.id = mpfmt, .id = mpfmt,
.avformat = fmt, .avformat = fmt,
.name = mp_imgfmt_to_name(desc.id), .name = mp_imgfmt_to_name(mpfmt),
.chroma_xs = pd->log2_chroma_w, .chroma_xs = pd->log2_chroma_w,
.chroma_ys = pd->log2_chroma_h, .chroma_ys = pd->log2_chroma_h,
}; };