wtv: Seek by sector properly
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 18 Oct 2013 11:45:13 +0000 (13:45 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 18 Oct 2013 13:08:18 +0000 (15:08 +0200)
commit2b72f8ac320c8c5087b1bd0589fc3df132eb42bc
tree063eaccf74698004f639d9d7da872c1a602703fc
parenta27f1116cdfe49ea5136f0460d6648aec517bb13
wtv: Seek by sector properly

Use an helper function to seek by sector to avoid possible mistakes
due shifting by WTV_SECTOR_BITS a 32bit integer.

Contrary to common intuition, a 32 bit integer left shifted
by a 64 bit integer does not promote the 32 bit integer to
64 bit before shifting.
libavformat/wtv.c