carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor — Issue #19: error: ‘CODEC_TYPE_AUDIO’ undeclared 
Author: liuqiang
Created: 2012-02-28 03:14:09+00:00
State: open

When I run make:

```
gcc -Wall -g live_segmenter.c -o live_segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
live_segmenter.c: In function ‘add_output_stream’:
live_segmenter.c:70:10: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
live_segmenter.c:70:10: note: each undeclared identifier is reported only once for each function it appears in
live_segmenter.c:84:10: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
live_segmenter.c: In function ‘main’:
live_segmenter.c:149:3: warning: ‘av_open_input_file’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
live_segmenter.c:165:3: warning: implicit declaration of function ‘guess_format’ [-Wimplicit-function-declaration]
live_segmenter.c:165:35: warning: initialization makes pointer from integer without a cast [enabled by default]
live_segmenter.c:192:12: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
live_segmenter.c:197:12: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
live_segmenter.c:208:3: warning: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1434) [-Wdeprecated-declarations]
live_segmenter.c:214:3: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1559) [-Wdeprecated-declarations]
live_segmenter.c:232:3: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279) [-Wdeprecated-declarations]
live_segmenter.c:238:3: warning: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1492) [-Wdeprecated-declarations]
live_segmenter.c:267:63: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
live_segmenter.c:283:7: warning: ‘put_flush_packet’ is deprecated (declared at /usr/local/include/libavformat/avio.h:293) [-Wdeprecated-declarations]
live_segmenter.c:284:7: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280) [-Wdeprecated-declarations]
live_segmenter.c:289:7: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279) [-Wdeprecated-declarations]
live_segmenter.c:326:3: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280) [-Wdeprecated-declarations]
make: *** [all] Error 1

```