diff options
author | rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-08 00:26:51 +0000 |
---|---|---|
committer | rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-08 00:26:51 +0000 |
commit | e1dc488097d28477768617cde168bd8146f834b1 (patch) | |
tree | 6852d5c932880f78db264f7eb3657a6a3c69b597 /libmpcodecs | |
parent | 304379ec71012bffc552685eff621b3906af3c55 (diff) | |
download | mpv-e1dc488097d28477768617cde168bd8146f834b1.tar.bz2 mpv-e1dc488097d28477768617cde168bd8146f834b1.tar.xz |
Warning fixes (approved by A'rpi).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11413 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/pullup.c | 6 | ||||
-rw-r--r-- | libmpcodecs/pullup.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c index 1cc1445c31..c1dbb65ea6 100644 --- a/libmpcodecs/pullup.c +++ b/libmpcodecs/pullup.c @@ -1,6 +1,8 @@ +#include <stdio.h> #include <stdlib.h> +#include <string.h> #include "pullup.h" #include "config.h" @@ -321,7 +323,7 @@ static void check_field_queue(struct pullup_context *c) } } -int pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity) +void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity) { struct pullup_field *f; @@ -329,7 +331,7 @@ int pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int p check_field_queue(c); /* Cannot have two fields of same parity in a row; drop the new one */ - if (c->last && c->last->parity == parity) return 0; + if (c->last && c->last->parity == parity) return; f = c->head; f->parity = parity; diff --git a/libmpcodecs/pullup.h b/libmpcodecs/pullup.h index 6f5ef624a0..a61bd76bef 100644 --- a/libmpcodecs/pullup.h +++ b/libmpcodecs/pullup.h @@ -64,7 +64,7 @@ struct pullup_buffer *pullup_lock_buffer(struct pullup_buffer *b, int parity); void pullup_release_buffer(struct pullup_buffer *b, int parity); struct pullup_buffer *pullup_get_buffer(struct pullup_context *c, int parity); -int pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity); +void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity); void pullup_flush_fields(struct pullup_context *c); struct pullup_frame *pullup_get_frame(struct pullup_context *c); |