[FFmpeg-devel] [PATCH] Using struct for StyleRecords and implementing support for large boxes(>32 bit) for 3gpp timed text

Michael Niedermayer michaelni at gmx.at
Sun Apr 26 05:04:07 CEST 2015


On Sun, Apr 26, 2015 at 08:22:56AM +0530, Niklesh Lalwani wrote:
> On Sun, Apr 26, 2015 at 6:56 AM, Michael Niedermayer <michaelni at gmx.at>
> > wrote:
> >
> >>
> >> > +struct __attribute__((__packed__)) StyleRecord {
> >
> >
> >> you cant do this
> >
> > attribute packed is not ANSI/ISO C
> >
> >
> >> How do I implement packed structures then here? ( since I don't want
> padding for proper alignment with the text sample)

you cant create packed structs, theres no portable way to do so
also there likely would be issues on either big or little endian
with such structs if they where used for reading data

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150426/3c81c826/attachment.asc>


More information about the ffmpeg-devel mailing list