summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/pullup.c
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-08 00:26:51 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-08 00:26:51 +0000
commite1dc488097d28477768617cde168bd8146f834b1 (patch)
tree6852d5c932880f78db264f7eb3657a6a3c69b597 /libmpcodecs/pullup.c
parent304379ec71012bffc552685eff621b3906af3c55 (diff)
downloadmpv-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/pullup.c')
-rw-r--r--libmpcodecs/pullup.c6
1 files changed, 4 insertions, 2 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;