x264enc: Fix various compiler warnings in the test

This commit is contained in:
Sebastian Dröge 2015-12-24 14:48:38 +01:00
parent c9c37983ba
commit 81b695bb01

View file

@ -143,10 +143,6 @@ test_video_profile (const gchar * profile, gint profile_id,
{ {
GstElement *x264enc; GstElement *x264enc;
GstBuffer *inbuffer, *outbuffer; GstBuffer *inbuffer, *outbuffer;
GstCaps *caps;
GstMapInfo map;
guint8 *data;
gsize size;
int i, num_buffers; int i, num_buffers;
x264enc = setup_x264enc (profile, "avc", input_format); x264enc = setup_x264enc (profile, "avc", input_format);
@ -161,6 +157,8 @@ test_video_profile (const gchar * profile, gint profile_id,
inbuffer = gst_buffer_new_and_alloc (384 * 288 * 2); inbuffer = gst_buffer_new_and_alloc (384 * 288 * 2);
else if (!strcmp (input_format, "Y444")) else if (!strcmp (input_format, "Y444"))
inbuffer = gst_buffer_new_and_alloc (384 * 288 * 3); inbuffer = gst_buffer_new_and_alloc (384 * 288 * 3);
else
g_assert_not_reached ();
/* makes valgrind's memcheck happier */ /* makes valgrind's memcheck happier */
gst_buffer_memset (inbuffer, 0, 0, -1); gst_buffer_memset (inbuffer, 0, 0, -1);