On Mon, Apr 27, 2015 at 2:09 PM Vittorio Giovara <[email protected]>
wrote:

> -int ff_h263_get_gob_height(MpegEncContext *s){
> -    if (s->height <= 400)
> +int ff_h263_get_gob_height(AVCodecContext *avctx)
> +{
> +    if (avctx->height <= 400)
>          return 1;
> -    else if (s->height <= 800)
> +    else if (avctx->height <= 800)
>          return  2;
>      else
>          return 4;
>

Why don't you just use `int ff_h263_get_gob_height(int height)` and pass in
the `avctx->height` from caller?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to