Project

General

Profile

Actions

Bug #1815

closed

Compile error - src/plumbing/transcoding.c

Added by Sascha Schmidt over 11 years ago. Updated over 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Transcoding
Target version:
-
Start date:
2013-10-16
Due date:
% Done:

0%

Estimated time:
Found in version:
git
Affected Versions:

Description

I'm trying to compile the latest git checkout of tvheadend on a debian jessie release...

I'm getting the following compile errors:

CC              src/plumbing/transcoding.o
src/plumbing/transcoding.c: In function ‘transcoder_stream_subtitle’:
src/plumbing/transcoding.c:218:5: error: implicit declaration of function ‘avcodec_open’ [-Werror=implicit-function-declaration]
     if (avcodec_open(ictx, icodec) < 0) {
     ^
src/plumbing/transcoding.c: In function ‘transcoder_stream_audio’:
src/plumbing/transcoding.c:330:28: error: ‘AV_CH_LAYOUT_MONO’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_MONO; 
                            ^
src/plumbing/transcoding.c:330:28: note: each undeclared identifier is reported only once for each function it appears in
src/plumbing/transcoding.c:334:28: error: ‘AV_CH_LAYOUT_STEREO’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_STEREO;
                            ^
src/plumbing/transcoding.c:338:28: error: ‘AV_CH_LAYOUT_SURROUND’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_SURROUND;
                            ^
src/plumbing/transcoding.c:342:28: error: ‘AV_CH_LAYOUT_QUAD’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_QUAD;
                            ^
src/plumbing/transcoding.c:346:28: error: ‘AV_CH_LAYOUT_5POINT0’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_5POINT0;
                            ^
src/plumbing/transcoding.c:350:28: error: ‘AV_CH_LAYOUT_5POINT1’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_5POINT1;
                            ^
src/plumbing/transcoding.c:354:28: error: ‘AV_CH_LAYOUT_6POINT1’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_6POINT1;
                            ^
src/plumbing/transcoding.c:358:28: error: ‘AV_CH_LAYOUT_7POINT1’ undeclared (first use in this function)
     octx->channel_layout = AV_CH_LAYOUT_7POINT1;
                            ^
src/plumbing/transcoding.c: In function ‘transcoder_init_subtitle’:
src/plumbing/transcoding.c:855:3: error: implicit declaration of function ‘avcodec_alloc_context’ [-Werror=implicit-function-declaration]
   ss->sub_ictx = avcodec_alloc_context();
   ^
src/plumbing/transcoding.c:855:16: error: assignment makes pointer from integer without a cast [-Werror]
   ss->sub_ictx = avcodec_alloc_context();
                ^
src/plumbing/transcoding.c:856:16: error: assignment makes pointer from integer without a cast [-Werror]
   ss->sub_octx = avcodec_alloc_context();
                ^
src/plumbing/transcoding.c: In function ‘transcoder_init_audio’:
src/plumbing/transcoding.c:947:16: error: assignment makes pointer from integer without a cast [-Werror]
   as->aud_ictx = avcodec_alloc_context();
                ^
src/plumbing/transcoding.c:948:16: error: assignment makes pointer from integer without a cast [-Werror]
   as->aud_octx = avcodec_alloc_context();
                ^
src/plumbing/transcoding.c: In function ‘transcoder_init_video’:
src/plumbing/transcoding.c:1057:16: error: assignment makes pointer from integer without a cast [-Werror]
   vs->vid_ictx = avcodec_alloc_context();
                ^
src/plumbing/transcoding.c:1058:16: error: assignment makes pointer from integer without a cast [-Werror]
   vs->vid_octx = avcodec_alloc_context();
                ^
cc1: all warnings being treated as errors
make: *** [/opt/install/tvheadend/build.linux/src/plumbing/transcoding.o] Error 1

Files

libavcodec9.patch (3.67 KB) libavcodec9.patch Steffen Vogel, 2013-10-19 19:16
tvheadend-libav-new-api.patch (7.24 KB) tvheadend-libav-new-api.patch Sascha Schmidt, 2013-11-05 13:59
Actions

Also available in: Atom PDF