On Sun, Aug 25, 2013 at 03:11:37PM +0200, David Suárez wrote:
> Source: jugglemaster
> Version: 0.4-6
> Severity: serious
> Tags: jessie sid
> User: [email protected]
> Usertags: qa-ftbfs-20130825 qa-ftbfs
> Justification: FTBFS on amd64
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Related to current libav9 transition (see #706798).
Patch attached.
Cheers,
Moritz
diff -aur jugglemaster-0.4.orig/src/jmdlx/print.cpp jugglemaster-0.4/src/jmdlx/print.cpp
--- jugglemaster-0.4.orig/src/jmdlx/print.cpp 2013-07-23 10:02:49.000000000 +0200
+++ jugglemaster-0.4/src/jmdlx/print.cpp 2013-07-23 10:12:46.192000000 +0200
@@ -544,7 +544,6 @@
outputfile = fopen((const char *)filename->GetValue().mb_str(wxConvUTF8),"w");
if(outputfile == NULL) return 1;
- avcodec_init();
avcodec_register_all();
codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);
@@ -552,7 +551,7 @@
return(1);
}
- c= avcodec_alloc_context();
+ c= avcodec_alloc_context3(codec);
picture= avcodec_alloc_frame();
c->bit_rate = 400000;
@@ -565,7 +564,7 @@
c->max_b_frames=1;
c->pix_fmt = PIX_FMT_YUV420P;
- if (avcodec_open(c, codec) < 0) {
+ if (avcodec_open2(c, codec, NULL) < 0) {
return(1);
}