linux里helloworld

 gcc -fpermissive sp.c   -I ../ff4.3.1 -L ./lib  -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lm -lpthread -lz -llzma

 

#include <inttypes.h>
#include <math.h>
#include <limits.h>
#include <signal.h>
#include <stdint.h>


#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"






int main(int argc, char **argv)
{




    /* register all codecs, demux and protocols */
#if CONFIG_AVDEVICE
    avdevice_register_all();
#endif
    avformat_network_init();



    /* never returns */

    return 0;
}

 

posted @ 2021-02-02 10:53  cnchengv  阅读(73)  评论(0编辑  收藏  举报