[vlc-commits] demux: mp4: fix built-in samplesize rounding

Francois Cartegnie git at videolan.org
Sat Jun 13 18:11:46 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 12 15:08:55 2015 +0200| [3dcf2fdab4bfea9c75a5633382f6de472083a996] | committer: Francois Cartegnie

demux: mp4: fix built-in samplesize rounding

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

 modules/demux/mp4/mp4.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 9294901..45b0825 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3036,7 +3036,7 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track,
         case ATOM_twos:
         case ATOM_sowt:
         case ATOM_raw:
-            i_size = p_soun->i_samplesize * p_soun->i_channelcount / 8;
+            i_size = ((p_soun->i_samplesize+7)/8) * p_soun->i_channelcount;
             break;
         default:
             break;



More information about the vlc-commits mailing list