[winswitch] [xpra-2.2.3] error: 'CODEC_FLAG2_FAST' undeclared

Antonio Trande anto.trande at gmail.com
Sun Jan 21 13:47:30 GMT 2018


On 21/01/2018 12:07, Antoine Martin via shifter-users wrote:
> On 18/01/18 20:48, Antonio Trande via shifter-users wrote:
>> Hi all.
>>
>> xpra-2.2.3 is not compiled on Fedora 28 (devel branch) with following
>> error (against ffmpeg-3.5, commit 20180116git):
> (..)
>> xpra/codecs/dec_avcodec2/decoder.c:5638:72: error: 'CODEC_FLAG2_FAST'
>> undeclared (first use in this function); did you mean 'AV_CODEC_FLAG2_FAST'?
>>    __pyx_v_self->codec_ctx->flags2 = (__pyx_v_self->codec_ctx->flags2 |
>> CODEC_FLAG2_FAST);
> The constant got renamed, this is fixed by:
> http://xpra.org/trac/changeset/18086
> 
> Cheers
> Antoine
> _______________________________________________


Hi Antoine.

The patch is incomplete yet:

>>
xpra/codecs/enc_ffmpeg/encoder.c: In function
'__pyx_pf_4xpra_6codecs_10enc_ffmpeg_7encoder_7Encoder_2init_encoder':
xpra/codecs/enc_ffmpeg/encoder.c:8092:70: error:
'CODEC_FLAG_GLOBAL_HEADER' undeclared (first use in this function); did
you mean 'AV_CODEC_FLAG_GLOBAL_HEADER'?
   __pyx_v_self->video_ctx->flags = (__pyx_v_self->video_ctx->flags |
CODEC_FLAG_GLOBAL_HEADER);

^~~~~~~~~~~~~~~~~~~~~~~~

AV_CODEC_FLAG_GLOBAL_HEADER
<<

See http://koji.rpmfusion.org/kojifiles/work/tasks/2268/192268/build.log

-- 
---
Antonio Trande
Fedora Project
mailto 'sagitter at fedoraproject dot org'
GPG key: 0x5E212EE1D35568BE
GPG key server: https://keys.fedoraproject.org/



More information about the shifter-users mailing list