Commit 3dcf2fda authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: fix built-in samplesize rounding

parent 0974fd35
...@@ -3036,7 +3036,7 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track, ...@@ -3036,7 +3036,7 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track,
case ATOM_twos: case ATOM_twos:
case ATOM_sowt: case ATOM_sowt:
case ATOM_raw: 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; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment