[Ffmpeg-cvslog] r7720 - trunk/libavcodec/vc1.c

Michael Niedermayer michaelni
Sat Jan 27 11:39:35 CET 2007


Hi

On Sat, Jan 27, 2007 at 07:57:11AM +0100, kostya wrote:
> Author: kostya
> Date: Sat Jan 27 07:57:11 2007
> New Revision: 7720
> 
> Modified:
>    trunk/libavcodec/vc1.c
> 
> Log:
> Set aspect ratio if present (for AP only)
> 
> Modified: trunk/libavcodec/vc1.c
> ==============================================================================
> --- trunk/libavcodec/vc1.c	(original)
> +++ trunk/libavcodec/vc1.c	Sat Jan 27 07:57:11 2007
> @@ -1296,12 +1296,14 @@
>          w = get_bits(gb, 14) + 1;
>          h = get_bits(gb, 14) + 1;
>          av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h);
> -        //TODO: store aspect ratio in AVCodecContext
>          if(get_bits1(gb))
>              ar = get_bits(gb, 4);
> -        if(ar == 15) {
> +        if(ar && ar < 14){
> +            v->s.avctx->sample_aspect_ratio = vc1_pixel_aspect[ar];

as the table seems to be the same as in h.264, why not make the one in
h264data non static with a ff_h264 prefix ...

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

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070127/f40c0d36/attachment.pgp>



More information about the ffmpeg-cvslog mailing list