diff options
author | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-08 19:54:07 +0000 |
---|---|---|
committer | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-08 19:54:07 +0000 |
commit | 9b67104eb7bb5832a4b9d5fef92dd23b4befeb14 (patch) | |
tree | 3f7201d0c84485f6c0656ac31e237afb9b054d73 /loader/qtx | |
parent | f6f655549bc5a052d9eaff4775a403867d14faa4 (diff) | |
download | mpv-9b67104eb7bb5832a4b9d5fef92dd23b4befeb14.tar.bz2 mpv-9b67104eb7bb5832a4b9d5fef92dd23b4befeb14.tar.xz |
Correct QuickTime dpi output.
The dpi value for QuickTime codecs is stored as Fixed16 (16.16 fixed-point),
not int. Correct the output value accordingly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30865 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/qtx')
-rw-r--r-- | loader/qtx/qtxsdk/components.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/qtx/qtxsdk/components.h b/loader/qtx/qtxsdk/components.h index e561455469..94cb8456dc 100644 --- a/loader/qtx/qtxsdk/components.h +++ b/loader/qtx/qtxsdk/components.h @@ -641,10 +641,10 @@ static inline void dump_ImageDescription(void* xxx){ printf("=============== ImageDescription at %p ==================\n",xxx); printf("idSize=0x%X fourcc=0x%08X\n",id->idSize,id->cType); printf("ver=%d rev=%d vendor=0x%08X\n",id->version,id->revisionLevel,id->vendor); - printf("tempQ=%d spatQ=%d dim: %d x %d dpi: %d x %d depth: %d\n", + printf("tempQ=%d spatQ=%d dim: %d x %d dpi: %.2f x %.2f depth: %d\n", id->temporalQuality,id->spatialQuality, id->width, id->height, - id->hRes, id->vRes, + id->hRes / 65536.0, id->vRes / 65536.0, id->depth); printf("dataSize=%d frameCount=%d clutID=%d\n",id->dataSize, id->frameCount, id->clutID); printf("name='%.*s'\n",((char*)(&id->name))[0],((char*)(&id->name))+1); |