[FFmpeg-devel] [PATCH] Warn about PAFF & Spatial

Michael Niedermayer michaelni
Wed Jul 16 13:32:11 CEST 2008


On Tue, Jul 15, 2008 at 11:36:35PM -0700, Serguei Miridonov wrote:
> While the issue 460 is not resolved, just to avoid log flood:
> 
> See attachment..
> 
> 

> Index: libavcodec/h264.c
> ===================================================================
> --- libavcodec/h264.c	(revision 14236)
> +++ libavcodec/h264.c	(working copy)
> @@ -4113,8 +4113,13 @@
>      if(h->slice_type == FF_P_TYPE || h->slice_type == FF_SP_TYPE || h->slice_type == FF_B_TYPE){
>          if(h->slice_type == FF_B_TYPE){
>              h->direct_spatial_mv_pred= get_bits1(&s->gb);
> -            if(FIELD_PICTURE && h->direct_spatial_mv_pred)
> -                av_log(h->s.avctx, AV_LOG_ERROR, "PAFF + spatial direct mode is not implemented\n");
> +            if(FIELD_PICTURE && h->direct_spatial_mv_pred){
> +                static int once = 0;
> +                if (!once) {
> +		    once++;
> +		    av_log(h->s.avctx, AV_LOG_ERROR, "PAFF + spatial direct mode is not implemented\n");
> +		}
> +	    }

non constant static, tabs, ...


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

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080716/8b940464/attachment.pgp>



More information about the ffmpeg-devel mailing list