---Rich---
( I get the below output when editing the make file: )
tc@box:~/pianobar$ make
CC src/main.c
CC src/player.c
src/player.c: In function 'openStream':
src/player.c:175:8: error: unknown type name 'AVCodecParameters'
const AVCodecParameters * const cp = player->st->codecpar;
^~~~~~~~~~~~~~~~~
src/player.c:175:49: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar'; did you mean 'codec'?
const AVCodecParameters * const cp = player->st->codecpar;
^~
src/player.c:176:13: warning: implicit declaration of function 'avcodec_parameters_to_context' [-Wimplicit-function-declaration]
if ((ret = avcodec_parameters_to_context (player->cctx, cp)) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/player.c:180:52: error: request for member 'codec_id' in something not a structure or union
AVCodec * const decoder = avcodec_find_decoder (cp->codec_id);
^~
src/player.c: In function 'openFilter':
src/player.c:206:2: error: unknown type name 'AVCodecParameters'
AVCodecParameters * const cp = player->st->codecpar;
^~~~~~~~~~~~~~~~~
src/player.c:206:43: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar'; did you mean 'codec'?
AVCodecParameters * const cp = player->st->codecpar;
^~
src/player.c:217:36: error: request for member 'sample_rate' in something not a structure or union
time_base.num, time_base.den, cp->sample_rate,
^~
src/player.c:219:6: error: request for member 'channel_layout' in something not a structure or union
cp->channel_layout);
^~
src/player.c: In function 'openDevice':
src/player.c:267:8: error: unknown type name 'AVCodecParameters'
const AVCodecParameters * const cp = player->st->codecpar;
^~~~~~~~~~~~~~~~~
src/player.c:267:49: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar'; did you mean 'codec'?
const AVCodecParameters * const cp = player->st->codecpar;
^~
src/player.c:273:21: error: request for member 'channels' in something not a structure or union
aoFmt.channels = cp->channels;
^~
src/player.c:274:17: error: request for member 'sample_rate' in something not a structure or union
aoFmt.rate = cp->sample_rate;
^~
src/player.c: In function 'play':
src/player.c:311:5: warning: implicit declaration of function 'avcodec_send_packet' [-Wimplicit-function-declaration]
avcodec_send_packet (cctx, NULL);
^~~~~~~~~~~~~~~~~~~
src/player.c:337:10: warning: implicit declaration of function 'avcodec_receive_frame' [-Wimplicit-function-declaration]
ret = avcodec_receive_frame (cctx, frame);
^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:108: src/player.o] Error 1