[FFmpeg-devel] [PATCH] x264 pure interlaced mode config

Loren Merritt lorenm
Tue Jul 3 13:06:50 CEST 2007


On Tue, 3 Jul 2007, Limin Wang wrote:

> By the way, how about to change some like below code in below way?
>
> -x4->params.b_bframe_pyramid = (avctx->flags2 & CODEC_FLAG2_BPYRAMID);
> +x4->params.b_bframe_pyramid = !!(avctx->flags2 & CODEC_FLAG2_BPYRAMID);

x264 conforms to the C convention that any non-zero value of a boolean 
variable means true. There is no need to ensure only 0 and 1.

--Loren Merritt




More information about the ffmpeg-devel mailing list