[vlc-commits] dxva2: fix print format

Rafaël Carré git at videolan.org
Wed Feb 1 21:49:47 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb  1 15:49:19 2012 -0500| [cb1fe28ba2f6ebf237e8988f1bcfb10e1d1c3162] | 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb1fe28ba2f6ebf237e8988f1bcfb10e1d1c3162
---

 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 faae53f..dcb2208 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -709,7 +709,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