Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4925 closed defect (fixed)

New API in kvazaar 0.7 (doesn't build with --enable-libkvazaar)

Reported by: marillat Owned by:
Priority: normal Component: build system
Version: 2.8.1 Keywords: libkvazaar
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

In kvazaar 0.7 the API has been changed in encoder_encode() and thus ffmpeg doesn't build with --enable-libkvazaar with the following error :

CC	libavcodec/libkvazaar.o
libavcodec/libkvazaar.c: In function ‘libkvazaar_encode’:
libavcodec/libkvazaar.c:176:10: error: too few arguments to function ‘ctx->api->encoder_encode’
     if (!ctx->api->encoder_encode(ctx->encoder, img_in, &data_out, &len_out, NULL)) {
          ^
libavcodec/libkvazaar.c:186:9: warning: ‘ff_alloc_packet’ is deprecated [-Wdeprecated-declarations]
         retval = ff_alloc_packet(avpkt, len_out);
         ^
In file included from libavcodec/libkvazaar.c:30:0:
libavcodec/internal.h:227:33: note: declared here
 attribute_deprecated int ff_alloc_packet(AVPacket *avpkt, int size);
                                 ^
common.mak:57: recipe for target 'libavcodec/libkvazaar.o' failed

Change History (8)

comment:1 by Carl Eugen Hoyos, 9 years ago

What FFmpeg version are you testing?

in reply to:  1 comment:2 by marillat, 9 years ago

Replying to cehoyos:

What FFmpeg version are you testing?

2.8 and 2.8.1

comment:3 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedbuild system
Keywords: libkvazaar added
Status: newopen
Version: unspecified2.8.1

Untested patch sent.

comment:4 by Carl Eugen Hoyos, 9 years ago

Resolution: fixed
Status: openclosed

in reply to:  3 comment:5 by marillat, 9 years ago

Replying to cehoyos:

Untested patch sent.

The patch is the one in c2db8ebc083e5fa35def204321a225960beede84 ?

comment:6 by Carl Eugen Hoyos, 9 years ago

Yes.

comment:7 by marillat, 9 years ago

Maybe not the best way to fix a bug report by disabling feature, especially when git master is already ported to kvazaar >= 0.7

comment:8 by Carl Eugen Hoyos, 9 years ago

I suspect this is how a release series is defined: Changing the version of an external dependency can't be ok...

Note: See TracTickets for help on using tickets.