On Wed, 6 Feb 2013 14:35:26 +0100, Vladimir Pantelic <vlado...@gmail.com> wrote: > Use the same get_tag()/get_value() as for the Extended Content Description > but handle the 16 bit vs 32 bit difference for type 2 (BOOL) > > Signed-off-by: Vladimir Pantelic <vlado...@gmail.com> > --- > libavformat/asfdec.c | 51 ++++++++++++++++++++++++++----------------------- > 1 files changed, 27 insertions(+), 24 deletions(-) > > diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c > index 1fcf5c3..e85ee8f 100644 > --- a/libavformat/asfdec.c > +++ b/libavformat/asfdec.c > @@ -165,11 +165,13 @@ static int asf_probe(AVProbeData *pd) > return 0; > } > > -static int get_value(AVIOContext *pb, int type) > +/* size of type 2 (BOOL) is 32bit for "Extended Content Description Object" > + * but 16 bit for "Metadata Object" and "Metadata Library Object" */ > +static int get_value(AVIOContext *pb, int type, int type2_size)
Can't say I like this very much, but I don't see a prettier solution either, so ok with me. -- Anton Khirnov _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel