[vlc-commits] dxva2: fix print format
Rafaël Carré
git at videolan.org
Mon Feb 27 19:20:47 CET 2012
vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb 1 15:49:19 2012 -0500| [b2999095a64a16b1857797cb7433f7a4bc1209bd] | committer: Rafaël Carré
dxva2: fix print format
DWORD is unsigned long, not int
http://msdn.microsoft.com/en-us/library/cc230318(v=prot.10).aspx
(cherry picked from commit cb1fe28ba2f6ebf237e8988f1bcfb10e1d1c3162)
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b2999095a64a16b1857797cb7433f7a4bc1209bd
---
modules/codec/avcodec/dxva2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index a0c4dbc..eb07c46 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -721,7 +721,7 @@ static char *DxDescribe(vlc_va_dxva2_t *va)
}
char *description;
- if (asprintf(&description, "DXVA2 (%.*s, vendor %d(%s), device %d, revision %d)",
+ if (asprintf(&description, "DXVA2 (%.*s, vendor %lu(%s), device %lu, revision %lu)",
sizeof(id->Description), id->Description,
id->VendorId, vendor, id->DeviceId, id->Revision) < 0)
return NULL;
More information about the vlc-commits
mailing list