Error C4576 in VS2015 enterprise

前端 未结 4 1591
清歌不尽
清歌不尽 2021-01-12 12:08

I have the error C4576 in Visual studio 2015 when I tried to compile the file: transcoding.c.

The source code of this file is here: transcoding.c

4条回答
  •  抹茶落季
    2021-01-12 12:43

    Old question, but... The solution is pretty simple:

    AVRational tb;
    tb.num = 1;
    tb.den = enc_ctx->sample_rate;
    
    enc_ctx->time_base = tb;
    

    or

    enc_ctx->time_base.num = 1;
    enc_ctx->time_base.den = enc_ctx->sample_rate;
    

提交回复
热议问题