[vlc-commits] hw: vaapi-deint: replace struct memcpy by direct copy
Victorien Le Couviour--Tuffet
git at videolan.org
Mon Jul 10 13:34:52 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jul 10 11:47:00 2017 +0200| [90d61b328cbdb1921fe51a6d4bef9a075f35bcf4] | committer: Thomas Guillem
hw: vaapi-deint: replace struct memcpy by direct copy
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90d61b328cbdb1921fe51a6d4bef9a075f35bcf4
---
modules/hw/vaapi/filters.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/hw/vaapi/filters.c b/modules/hw/vaapi/filters.c
index 091a949f24..5c4fd38be2 100755
--- a/modules/hw/vaapi/filters.c
+++ b/modules/hw/vaapi/filters.c
@@ -220,7 +220,7 @@ struct basic_filter_data
struct deint_mode
{
- char const name[5];
+ char name[5];
VAProcDeinterlacingType type;
bool b_double_rate;
};
@@ -995,7 +995,7 @@ OpenDeinterlace_IsValidType(filter_t * filter,
static inline int
OpenDeinterlace_GetMode(filter_t * filter, char const * deint_mode,
- struct deint_mode * p_deint_mode,
+ struct deint_mode * p_deint_mode,
VAProcDeinterlacingType const caps[],
unsigned int num_caps)
{
@@ -1009,7 +1009,7 @@ OpenDeinterlace_GetMode(filter_t * filter, char const * deint_mode,
if (OpenDeinterlace_IsValidType(filter, caps, num_caps,
deint_modes + i))
{
- memcpy(p_deint_mode, &deint_modes[i], sizeof(*p_deint_mode));
+ *p_deint_mode = deint_modes[i];
msg_Dbg(filter, "using %s deinterlace method",
deint_modes[i].name);
return VLC_SUCCESS;
@@ -1023,7 +1023,7 @@ OpenDeinterlace_GetMode(filter_t * filter, char const * deint_mode,
if (OpenDeinterlace_IsValidType(filter, caps, num_caps,
deint_modes + i))
{
- memcpy(p_deint_mode, &deint_modes[i], sizeof(*p_deint_mode));
+ *p_deint_mode = deint_modes[i];
if (fallback)
msg_Info(filter, "%s algorithm not available, falling back to "
"%s algorithm", deint_mode, deint_modes[i].name);
More information about the vlc-commits
mailing list