GithubHelp home page GithubHelp logo

cropdetect3's People

Contributors

schnusch avatar

Watchers

 avatar

cropdetect3's Issues

ffmpeg 3.1 deprecated warnings

Using ffmpeg newer or equal 3.1 the compilation will throw a lot of warnings:

cropdetect3.c: In function ‘select_stream’:
cropdetect3.c:223:3: warning: ‘codec’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:880) [-Wdeprecated-declarations]
if(st->codec->codec_type != AVMEDIA_TYPE_VIDEO)
^
cropdetect3.c:225:4: warning: ‘codec’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:880) [-Wdeprecated-declarations]
const char _type = av_get_media_type_string(st->codec->codec_type);
^
cropdetect3.c:237:2: warning: ‘codec’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:880) [-Wdeprecated-declarations]
if((_dec = avcodec_find_decoder(st->codec->codec_id)) == NULL)
^
cropdetect3.c: In function ‘open_output’:
cropdetect3.c:463:2: warning: ‘codec’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:880) [-Wdeprecated-declarations]
*enc_ctx = st->codec;
^
cropdetect3.c: In function ‘filter_packet’:
cropdetect3.c:565:2: warning: ‘avcodec_decode_video2’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:4753) [-Wdeprecated-declarations]
while(pkt_in->size > 0 && (nprocd = avcodec_decode_video2(dec_ctx, f, frame_read, pkt_in)) > 0)
^
cropdetect3.c:586:6: warning: ‘avcodec_encode_video2’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:5261) [-Wdeprecated-declarations]
if((ret = avcodec_encode_video2(enc_ctx, pkt_out, f, frame_written)) != 0)
^
cropdetect3.c: In function ‘main’:
cropdetect3.c:830:3: warning: ‘avcodec_copy_context’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:4182) [-Wdeprecated-declarations]
ret = avcodec_copy_context(dec_ctx, in_ctx->streams[idx]->codec);
^
cropdetect3.c:830:3: warning: ‘codec’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:880) [-Wdeprecated-declarations]
cropdetect3.c:995:4: warning: ‘avcodec_encode_video2’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:5261) [-Wdeprecated-declarations]
if((ret = avcodec_encode_video2(enc_ctx, &pkt_out, NULL, &frame_written)) != 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.