diff options
author | wm4 <wm4@nowhere> | 2014-03-17 18:19:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-17 18:19:57 +0100 |
commit | 5ed24862c01b217b4db0b04d74f29bad9bc80569 (patch) | |
tree | afb9133ac23119c3aceabb1cfb1f2b7e8ee57175 /video/mp_image.c | |
parent | 6aa2d1f12073c65a30a0b3a8c6d7191165ca0286 (diff) | |
download | mpv-5ed24862c01b217b4db0b04d74f29bad9bc80569.tar.bz2 mpv-5ed24862c01b217b4db0b04d74f29bad9bc80569.tar.xz |
video: change image format from unsigned int to int in some places
Image formats used to be FourCCs, so unsigned int was better. But now
it's annoying and the only difference is that unsigned int is more to
type than int.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index 8b79489f31..67d7168bf1 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -149,7 +149,7 @@ static void mp_image_alloc_planes(struct mp_image *mpi) } } -void mp_image_setfmt(struct mp_image *mpi, unsigned int out_fmt) +void mp_image_setfmt(struct mp_image *mpi, int out_fmt) { struct mp_imgfmt_desc fmt = mp_imgfmt_get_desc(out_fmt); mpi->fmt = fmt; @@ -195,7 +195,7 @@ void mp_image_set_display_size(struct mp_image *mpi, int dw, int dh) mpi->display_h = dh; } -struct mp_image *mp_image_alloc(unsigned int imgfmt, int w, int h) +struct mp_image *mp_image_alloc(int imgfmt, int w, int h) { struct mp_image *mpi = talloc_zero(NULL, struct mp_image); talloc_set_destructor(mpi, mp_image_destructor); |