Source: imageshack-uploader Version: 2.2+hg20100408.d802dea89428-5.1 Severity: serious Justifcation: FTBFS but built successfully in the past Tags: sid jessie
imageshack-uploader FTBFS with libav 9: | ffmpeg_fas.o: In function `fas_open_video': | /«BUILDDIR»/imageshack-uploader-2.2+hg20100408.d802dea89428/ffmpeg_fas.c:213: undefined reference to `av_open_input_file' | /«BUILDDIR»/imageshack-uploader-2.2+hg20100408.d802dea89428/ffmpeg_fas.c:219: undefined reference to `av_find_stream_info' | /«BUILDDIR»/imageshack-uploader-2.2+hg20100408.d802dea89428/ffmpeg_fas.c:254: undefined reference to `avcodec_open' | /«BUILDDIR»/imageshack-uploader-2.2+hg20100408.d802dea89428/ffmpeg_fas.c:226: undefined reference to `dump_format' | collect2: error: ld returned 1 exit status | make[1]: *** [imageshack-uploader] Error 1 | make[1]: Leaving directory `/«BUILDDIR»/imageshack-uploader-2.2+hg20100408.d802dea89428' | make: *** [debian/stamp-makefile-build] Error 2 | dpkg-buildpackage: error: debian/rules build gave error exit status 2 The full build log is available at http://people.debian.org/~sramacher/logs/imageshack-uploader_2.2+hg20100408.d802dea89428-5.1_amd64-20130814-2002.log A patch to fix this build failure is attached. It will fail later with #713197, though. Furthermore imageshack-uploader build depends on ffmpeg which is no longer built by libav. Regards -- Sebastian Ramacher
--- imageshack-uploader-2.2+hg20100408.d802dea89428.orig/ffmpeg_fas.c
+++ imageshack-uploader-2.2+hg20100408.d802dea89428/ffmpeg_fas.c
@@ -210,20 +210,20 @@ fas_error_type fas_open_video (fas_conte
fas_context->seek_table = seek_init_table (-1); /* default starting size */
- if (av_open_input_file ( &(fas_context->format_context), file_path, NULL, 0, NULL ) != 0)
+ if (avformat_open_input ( &(fas_context->format_context), file_path, NULL, NULL ) != 0)
{
fas_close_video(fas_context);
return private_show_error ("failure to open file", FAS_UNSUPPORTED_FORMAT);
}
- if (av_find_stream_info (fas_context->format_context) < 0)
+ if (avformat_find_stream_info (fas_context->format_context, NULL) < 0)
{
fas_close_video(fas_context);
return private_show_error ("could not extract stream information", FAS_UNSUPPORTED_FORMAT);
}
if (SHOW_WARNING_MESSAGES)
- dump_format(fas_context->format_context, 0, file_path, 0);
+ av_dump_format(fas_context->format_context, 0, file_path, 0);
int stream_idx;
for (stream_idx = 0; stream_idx < fas_context->format_context->nb_streams; stream_idx++)
@@ -251,7 +251,7 @@ fas_error_type fas_open_video (fas_conte
return private_show_error("failed to find correct video codec", FAS_UNSUPPORTED_CODEC);
}
- if (avcodec_open (fas_context->codec_context, codec) < 0)
+ if (avcodec_open2 (fas_context->codec_context, codec, NULL) < 0)
{
fas_context->codec_context = 0;
fas_close_video(fas_context);
@@ -315,7 +315,7 @@ fas_error_type fas_close_video (fas_cont
avcodec_close(context->codec_context);
if (context->format_context)
- av_close_input_file (context->format_context);
+ avformat_close_input (context->format_context);
if (context->rgb_frame_buffer)
av_free (context->rgb_frame_buffer);
signature.asc
Description: Digital signature

