Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834403 - media-video/ffmpeg2theora-0.30-r1 with ffmpeg-5.0: src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
Summary: media-video/ffmpeg2theora-0.30-r1 with ffmpeg-5.0: src/subtitles.h:25:128: er...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: media-video herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:52 UTC by Kobboi
Modified: 2022-03-01 00:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,6.41 KB, application/gzip)
2022-02-28 20:52 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20:52 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 20:52:30 UTC
Checking for libswresample... (cached) yes
Checking for libavdevice libavformat libavfilter libavcodec >= 52.30.0 libpostproc libswscale libavutil libswresample... (cached) yes
Checking for C header file libavformat/framehook.h... no
Checking for C header file iconv.h... yes
Checking for C library iconv... no
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/theorautils.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/theorautils.c
gcc -o src/subtitles.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/subtitles.c
gcc -o src/iso639.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/iso639.c
gcc -o src/index.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/index.c
gcc -o src/ffmpeg2theora.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/ffmpeg2theora.c
gcc -o src/avinfo.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/avinfo.c
In file included from src/subtitles.c:39:
src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
   25 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend);
      |                                                             ^~~~~~~~~~~~~~

src/subtitles.c:571:121: error: unknown type name ‘AVSubtitleRect’
  571 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend)
      |                                                             ^~~~~~~~~~~~~~

scons: *** [src/subtitles.o] Error 1
In file included from src/ffmpeg2theora.c:52:
src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
   25 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend);
      |                                                             ^~~~~~~~~~~~~~

src/ffmpeg2theora.c: In function ‘frame_alloc’:
src/ffmpeg2theora.c:155:12: warning: implicit declaration of function ‘avpicture_get_size’ [-Wimplicit-function-declaration]
  155 |     size = avpicture_get_size (pix_fmt, width, height);
      |            ^~~~~~~~~~~~~~~~~~
src/ffmpeg2theora.c:161:5: warning: implicit declaration of function ‘avpicture_fill’ [-Wimplicit-function-declaration]
  161 |     avpicture_fill((AVPicture *) picture, picture_buf, pix_fmt, width, height);
      |     ^~~~~~~~~~~~~~
src/ffmpeg2theora.c:161:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘picture’?
  161 |     avpicture_fill((AVPicture *) picture, picture_buf, pix_fmt, width, height);
      |                     ^~~~~~~~~
      |                     picture


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:52:40 UTC
Created attachment 766065 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:52:42 UTC
Created attachment 766066 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:53:12 UTC
Compiles fine with ffmpeg-4.4.1