Github user mike-jumper commented on a diff in the pull request:

    https://github.com/apache/guacamole-server/pull/159#discussion_r173687760
  
    --- Diff: src/guacenc/ffmpeg-compat.c ---
    @@ -165,3 +197,62 @@ int guacenc_avcodec_encode_video(guacenc_video* video, 
AVFrame* frame) {
     #endif
     }
     
    +AVCodecContext* guacenc_build_avcodeccontext(AVStream* stream,
    +        AVCodec* codec,
    +        int bitrate,
    +        int width,
    +        int height,
    +        int gop_size,
    +        int qmax,
    +        int qmin,
    +        int pix_fmt,
    +        AVRational time_base) {
    +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 33, 100)
    +    stream->codec->bit_rate = bitrate;
    --- End diff --
    
    Why is the `codec` parameter ignored in this case?


---

Reply via email to