summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-07 16:29:36 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-07 16:29:36 +0000
commita6c45d1907ff592c80d3d70f49840be384444dd4 (patch)
treedc0a83f521456ba50a6e07f6f4695050b63ca888
parent3798ee56d38e5b978bf20520ec06f4821176dee9 (diff)
downloadxine-lib-a6c45d1907ff592c80d3d70f49840be384444dd4.tar.gz
xine-lib-a6c45d1907ff592c80d3d70f49840be384444dd4.tar.bz2
Compiler warning fixes.
-rw-r--r--src/video_dec/libvdpau/cpb.c4
-rw-r--r--src/video_dec/libvdpau/cpb.h2
-rw-r--r--src/video_dec/libvdpau/dpb.c6
-rw-r--r--src/video_dec/libvdpau/h264_parser.c7
-rw-r--r--src/video_dec/libvdpau/nal.c4
-rw-r--r--src/video_dec/libvdpau/nal.h2
-rw-r--r--src/video_dec/libvdpau/vdpau_h264.c6
-rw-r--r--src/video_dec/libvdpau/vdpau_mpeg12.c5
-rw-r--r--src/video_dec/libvdpau/vdpau_vc1.c5
9 files changed, 35 insertions, 6 deletions
diff --git a/src/video_dec/libvdpau/cpb.c b/src/video_dec/libvdpau/cpb.c
index ec61e55a1..d06238e5c 100644
--- a/src/video_dec/libvdpau/cpb.c
+++ b/src/video_dec/libvdpau/cpb.c
@@ -20,6 +20,10 @@
* cpb.c: Coded Picture Buffer
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "cpb.h"
#include <stdlib.h>
diff --git a/src/video_dec/libvdpau/cpb.h b/src/video_dec/libvdpau/cpb.h
index 0bb46816f..37dbd94cf 100644
--- a/src/video_dec/libvdpau/cpb.h
+++ b/src/video_dec/libvdpau/cpb.h
@@ -61,7 +61,7 @@ struct coded_picture
struct nal_unit *slc_nal;
};
-struct coded_picture* create_coded_picture();
+struct coded_picture* create_coded_picture(void);
void free_coded_picture(struct coded_picture *pic);
#endif /* CPB_H_ */
diff --git a/src/video_dec/libvdpau/dpb.c b/src/video_dec/libvdpau/dpb.c
index 509075134..e25657b8e 100644
--- a/src/video_dec/libvdpau/dpb.c
+++ b/src/video_dec/libvdpau/dpb.c
@@ -20,6 +20,10 @@
* dpb.c: Implementing Decoded Picture Buffer
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -113,6 +117,8 @@ struct decoded_picture* dpb_get_next_ref_pic(struct dpb *dpb,
pic = pic->next;
}
+
+ return NULL;
}
struct decoded_picture* dpb_get_next_out_picture(struct dpb *dpb, int do_flush)
diff --git a/src/video_dec/libvdpau/h264_parser.c b/src/video_dec/libvdpau/h264_parser.c
index 30c793975..bb010a342 100644
--- a/src/video_dec/libvdpau/h264_parser.c
+++ b/src/video_dec/libvdpau/h264_parser.c
@@ -20,6 +20,10 @@
* h264_parser.c: Almost full-features H264 NAL-Parser
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@ -1662,7 +1666,8 @@ int parse_frame(struct h264_parser *parser, uint8_t *inbuf, int inbuf_len,
int32_t offset = 0;
int start_seq_len = 3;
- *ret_pic = *ret_buf = NULL;
+ *ret_pic = NULL;
+ *ret_buf = NULL;
*ret_len = 0;
if(parser->nal_size_length > 0)
diff --git a/src/video_dec/libvdpau/nal.c b/src/video_dec/libvdpau/nal.c
index eb150cfda..c3693c5f2 100644
--- a/src/video_dec/libvdpau/nal.c
+++ b/src/video_dec/libvdpau/nal.c
@@ -20,6 +20,10 @@
* nal.c: nal-structure utility functions
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/video_dec/libvdpau/nal.h b/src/video_dec/libvdpau/nal.h
index 500efa495..60e3c22b0 100644
--- a/src/video_dec/libvdpau/nal.h
+++ b/src/video_dec/libvdpau/nal.h
@@ -487,7 +487,7 @@ struct nal_unit* nal_buffer_get_by_pps_id(struct nal_buffer *nal_buffer,
uint32_t pic_parameter_set_id);
struct nal_unit* nal_buffer_get_last(struct nal_buffer *nal_buffer);
-struct nal_unit* create_nal_unit();
+struct nal_unit* create_nal_unit(void);
void lock_nal_unit(struct nal_unit *nal);
void release_nal_unit(struct nal_unit *nal);
void copy_nal_unit(struct nal_unit *dest, struct nal_unit *src);
diff --git a/src/video_dec/libvdpau/vdpau_h264.c b/src/video_dec/libvdpau/vdpau_h264.c
index 433daee15..32821223f 100644
--- a/src/video_dec/libvdpau/vdpau_h264.c
+++ b/src/video_dec/libvdpau/vdpau_h264.c
@@ -22,6 +22,10 @@
* vdpau_h264.c: H264 Video Decoder utilizing nvidia VDPAU engine
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -657,7 +661,7 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen,
this->wait_for_frame_start = 0;
len += parse_frame(this->nal_parser, buf->content + len, buf->size - len,
buf->pts,
- (uint8_t*)&vdp_buffer.bitstream, &vdp_buffer.bitstream_bytes, &this->completed_pic);
+ (uint8_t**)&vdp_buffer.bitstream, &vdp_buffer.bitstream_bytes, &this->completed_pic);
if(this->decoder == VDP_INVALID_HANDLE &&
this->completed_pic &&
diff --git a/src/video_dec/libvdpau/vdpau_mpeg12.c b/src/video_dec/libvdpau/vdpau_mpeg12.c
index e7279a870..1ae7a06aa 100644
--- a/src/video_dec/libvdpau/vdpau_mpeg12.c
+++ b/src/video_dec/libvdpau/vdpau_mpeg12.c
@@ -25,6 +25,9 @@
/*#define LOG*/
#define LOG_MODULE "vdpau_mpeg12"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -925,7 +928,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
VdpStatus st = accel->vdp_decoder_create( accel->vdp_device, VDP_DECODER_PROFILE_MPEG2_MAIN, 1920, 1080, 2, &decoder );
if ( st!=VDP_STATUS_OK ) {
lprintf( "can't create vdpau decoder.\n" );
- return 1;
+ return NULL;
}
accel->vdp_decoder_destroy( decoder );
diff --git a/src/video_dec/libvdpau/vdpau_vc1.c b/src/video_dec/libvdpau/vdpau_vc1.c
index 2a46086d6..52db4f964 100644
--- a/src/video_dec/libvdpau/vdpau_vc1.c
+++ b/src/video_dec/libvdpau/vdpau_vc1.c
@@ -25,6 +25,9 @@
/*#define LOG*/
#define LOG_MODULE "vdpau_vc1"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -1078,7 +1081,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
VdpStatus st = accel->vdp_decoder_create( accel->vdp_device, VDP_DECODER_PROFILE_VC1_MAIN, 1920, 1080, 2, &decoder );
if ( st!=VDP_STATUS_OK ) {
lprintf( "can't create vdpau decoder.\n" );
- return 1;
+ return NULL;
}
accel->vdp_decoder_destroy( decoder );