[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1004826: harvid: FTBFS with ffmpeg 5.0



Source: harvid
Version: 0.8.3-2
Severity: important
X-Debbugs-Cc: sramacher@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

harvid FTBFS with ffmpeg 5.0 in experimental:

cc -c -o vinfo.o -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   `pkg-config --cflags libavcodec libavformat libavutil libswscale` vinfo.c
ffdecoder.c: In function ‘ff_picture_bytesize’:
ffdecoder.c:91:18: warning: implicit declaration of function ‘avpicture_get_size’; did you mean ‘ff_picture_bytesize’? [-Wimplicit-function-declaration]
   91 |   const int bs = avpicture_get_size(render_fmt, w, h);
      |                  ^~~~~~~~~~~~~~~~~~
      |                  ff_picture_bytesize
ffdecoder.c: In function ‘ff_init_moviebuffer’:
ffdecoder.c:261:3: warning: implicit declaration of function ‘avpicture_fill’ [-Wimplicit-function-declaration]
  261 |   avpicture_fill((AVPicture *)ff->pFrameFMT, ff->buffer, ff->render_fmt, ff->out_width, ff->out_height);
      |   ^~~~~~~~~~~~~~
ffdecoder.c:261:19: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  261 |   avpicture_fill((AVPicture *)ff->pFrameFMT, ff->buffer, ff->render_fmt, ff->out_width, ff->out_height);
      |                   ^~~~~~~~~
      |                   AVPictureType
ffdecoder.c:261:19: note: each undeclared identifier is reported only once for each function it appears in
ffdecoder.c:261:30: error: expected expression before ‘)’ token
  261 |   avpicture_fill((AVPicture *)ff->pFrameFMT, ff->buffer, ff->render_fmt, ff->out_width, ff->out_height);
      |                              ^
ffdecoder.c: In function ‘ff_initialize’:
ffdecoder.c:266:3: warning: implicit declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
  266 |   av_register_all();
      |   ^~~~~~~~~~~~~~~
ffdecoder.c:267:3: warning: implicit declaration of function ‘avcodec_register_all’ [-Wimplicit-function-declaration]
  267 |   avcodec_register_all();
      |   ^~~~~~~~~~~~~~~~~~~~
ffdecoder.c: In function ‘ff_set_framerate’:
ffdecoder.c:321:21: warning: implicit declaration of function ‘av_stream_get_r_frame_rate’; did you mean ‘av_stream_get_side_data’? [-Wimplicit-function-declaration]
  321 |     AVRational fr = av_stream_get_r_frame_rate (av_stream);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                     av_stream_get_side_data
ffdecoder.c:321:21: error: invalid initializer
ffdecoder.c: In function ‘ff_open_movie’:
ffdecoder.c:410:34: error: ‘AVStream’ has no member named ‘codec’
  410 |     if(ff->pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
      |                                  ^~
ffdecoder.c:461:59: error: ‘AVStream’ has no member named ‘codec’
  461 |   ff->pCodecCtx = ff->pFormatCtx->streams[ff->videoStream]->codec;
      |                                                           ^~
ffdecoder.c:488:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  488 |   pCodec = avcodec_find_decoder(ff->pCodecCtx->codec_id);
      |          ^
ffdecoder.c: In function ‘parse_pts_from_frame’:
ffdecoder.c:538:11: warning: implicit declaration of function ‘av_frame_get_best_effort_timestamp’ [-Wimplicit-function-declaration]
  538 |     pts = av_frame_get_best_effort_timestamp (f);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ffdecoder.c:550:14: error: ‘AVFrame’ has no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
  550 |     pts = f->pkt_pts;
      |              ^~~~~~~
      |              pkt_dts
ffdecoder.c: In function ‘my_seek_frame’:
ffdecoder.c:620:9: warning: implicit declaration of function ‘av_free_packet’; did you mean ‘av_get_packet’? [-Wimplicit-function-declaration]
  620 |         av_free_packet (packet);
      |         ^~~~~~~~~~~~~~
      |         av_get_packet
ffdecoder.c:635:11: warning: implicit declaration of function ‘avcodec_decode_video2’; did you mean ‘avcodec_decode_subtitle2’? [-Wimplicit-function-declaration]
  635 |     err = avcodec_decode_video2 (ff->pCodecCtx, ff->pFrame, &frameFinished, packet);
      |           ^~~~~~~~~~~~~~~~~~~~~
      |           avcodec_decode_subtitle2
ffdecoder.c: In function ‘ff_set_bufferptr’:
ffdecoder.c:773:19: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  773 |   avpicture_fill((AVPicture *)ff->pFrameFMT, ff->buffer, ff->render_fmt, ff->out_width, ff->out_height);
      |                   ^~~~~~~~~
      |                   AVPictureType
ffdecoder.c:773:30: error: expected expression before ‘)’ token
  773 |   avpicture_fill((AVPicture *)ff->pFrameFMT, ff->buffer, ff->render_fmt, ff->out_width, ff->out_height);
      |                              ^
make[3]: *** [Makefile:84: ffdecoder.o] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: