[FFmpeg-devel] [PATCH] rmdec.c: implement RMVideo/AudioStream
Ronald S. Bultje
rsbultje
Sun Dec 14 20:52:39 CET 2008
Hi Michael,
On Sun, Dec 14, 2008 at 2:34 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> - int curpic_num; ///< picture number of current frame
>> + int curpic_num; ///< picture number of current frame;
>
> ehm
>
>
>> int cur_slice, slices;
>> - int64_t pktpos; ///< first slice position in file
>> - /// Audio descrambling matrix parameters
>> + int64_t pktpos; ///< first slice position in file;
>> +} RMVideoStream;
>> +
>> +typedef struct {
>> + ///Audio descrambling matrix parameters
>> uint8_t *audiobuf; ///< place to store reordered audio data
>
>> - int64_t audiotimestamp; ///< Audio packet timestamp
>> + uint64_t audiotimestamp; ///< Audio packet timestamp
>
> does not belong in this patch
Sorry, typo, removed.
> i do not like this, having priv_data being 2 different structs depending on
> codec_type needs very strong justification and a full review of the whole
> source tree to ensure nothing can flip the type
Hm... gotcha. So I suppose a union isn't good either, right? You want
me to just copy all values in each copy of RMStream? (I know, it's
only a few bytes, but seems like a tiny little waste to me. :-) ). If
so, that patch is attached. If not, I'm open for other suggestions and
please disregard the useless attachment.
Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rmdec-rmstream.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081214/984e0aa3/attachment.txt>
More information about the ffmpeg-devel
mailing list