On 2022-02-07 10:46:19 +0100, Thibaut Paumard wrote: > Thanks. > > It looks like the API has changed quite a lot since the last time I have > looked this way. Is there an upgrading guide for downstream developpers or a > frequent issues list I could use?
The best that there currently is /usr/share/doc/ffmpeg/api/deprecated.html from ffmpeg-doc (4.x) with a list of deprecations and their replacements. Cheers > > Best regards, Thibaut. > > Le 01/02/2022 à 21:28, Sebastian Ramacher a écrit : > > Source: yorick-av > > Version: 0.0.5-1 > > Severity: important > > X-Debbugs-Cc: sramac...@debian.org > > Tags: sid bookworm ftbfs > > Usertags: ffmpeg5.0 > > > > yorick-av FTBFS with ffmpeg 5.0 in experimental: > > > > cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong > > -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC > > -DPLUG_IN -I. -I/usr/lib/yorick/include -Wdate-time -D_FORTIFY_SOURCE=2 -c > > -o yav.o yav.c > > yav.c: In function ‘yav_write_frame’: > > yav.c:96:5: warning: ‘av_init_packet’ is deprecated > > [-Wdeprecated-declarations] > > 96 | av_init_packet(&pkt); > > | ^~~~~~~~~~~~~~ > > In file included from > > /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316, > > from yav.c:30: > > /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here > > 506 | void av_init_packet(AVPacket *pkt); > > | ^~~~~~~~~~~~~~ > > yav.c: In function ‘Y_av_create’: > > yav.c:216:19: error: ‘AVFormatContext’ has no member named ‘filename’ > > 216 | snprintf(obj->oc->filename, sizeof(obj->oc->filename), "%s", > > filename); > > | ^~ > > yav.c:216:45: error: ‘AVFormatContext’ has no member named ‘filename’ > > 216 | snprintf(obj->oc->filename, sizeof(obj->oc->filename), "%s", > > filename); > > | ^~ > > yav.c:225:18: warning: assignment discards ‘const’ qualifier from pointer > > target type [-Wdiscarded-qualifiers] > > 225 | obj->codec = avcodec_find_encoder_by_name(vcodec); > > | ^ > > yav.c:228:18: warning: assignment discards ‘const’ qualifier from pointer > > target type [-Wdiscarded-qualifiers] > > 228 | obj->codec = > > avcodec_find_encoder(obj->oc->oformat->video_codec); > > | ^ > > yav.c:242:5: warning: implicit declaration of function > > ‘avcodec_get_context_defaults3’ [-Wimplicit-function-declaration] > > 242 | avcodec_get_context_defaults3(c, obj->codec); > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > yav.c: In function ‘yav_opencodec’: > > yav.c:300:37: error: ‘AVFormatContext’ has no member named ‘filename’ > > 300 | av_dump_format(obj->oc, 0, obj->oc->filename, 1); > > | ^~ > > yav.c:355:40: error: ‘AVFormatContext’ has no member named ‘filename’ > > 355 | if (avio_open(&obj->oc->pb, obj->oc->filename, > > AVIO_FLAG_WRITE) < 0) > > | ^~ > > yav.c:356:46: error: ‘AVFormatContext’ has no member named ‘filename’ > > 356 | y_errorq("Could not open '%s'", obj->oc->filename); > > | ^~ > > yav.c: In function ‘Y_av_write’: > > yav.c:438:5: warning: ‘av_init_packet’ is deprecated > > [-Wdeprecated-declarations] > > 438 | av_init_packet(&pkt); > > | ^~~~~~~~~~~~~~ > > In file included from > > /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316, > > from yav.c:30: > > /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here > > 506 | void av_init_packet(AVPacket *pkt); > > | ^~~~~~~~~~~~~~ > > yav.c:444:23: error: ‘AVPicture’ undeclared (first use in this function); > > did you mean ‘AVPictureType’? > > 444 | pkt.size = sizeof(AVPicture); > > | ^~~~~~~~~ > > | AVPictureType > > yav.c:444:23: note: each undeclared identifier is reported only once for > > each function it appears in > > yav.c: In function ‘Y___av_init’: > > yav.c:468:3: warning: implicit declaration of function ‘av_register_all’ > > [-Wimplicit-function-declaration] > > 468 | av_register_all(); > > | ^~~~~~~~~~~~~~~ > > make[2]: *** [<builtin>: yav.o] Error 1 > > make[2]: Leaving directory '/<<PKGBUILDDIR>>' > > > > Cheers > -- Sebastian Ramacher
signature.asc
Description: PGP signature