Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/electricsheep/files: electricsheep-2.7_beta11-ffmpeg1.patch
Date: Sun, 03 Mar 2013 12:29:49
Message-Id: 20130303122945.4030A20081@flycatcher.gentoo.org
1 aballier 13/03/03 12:29:45
2
3 Added: electricsheep-2.7_beta11-ffmpeg1.patch
4 Log:
5 fix build with ffmpeg-1, bug #458912
6
7 (Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
8
9 Revision Changes Path
10 1.1 x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg1.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg1.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg1.patch?rev=1.1&content-type=text/plain
14
15 Index: electricsheep-2.7_beta11-ffmpeg1.patch
16 ===================================================================
17 Index: electricsheep-2.7_beta11/electricsheep.c
18 ===================================================================
19 --- electricsheep-2.7_beta11.orig/electricsheep.c
20 +++ electricsheep-2.7_beta11/electricsheep.c
21 @@ -652,7 +652,7 @@ void copy_out_file(char *fname) {
22 return;
23 }
24
25 - if (0 > av_open_input_file(&ictx, fname, NULL, 0, NULL)) {
26 + if (0 > avformat_open_input(&ictx, fname, NULL, NULL)) {
27 perror(fname);
28 exit(1);
29 }
30 @@ -699,8 +699,6 @@ void copy_out_file(char *fname) {
31 output_ctx->oformat = ofmt;
32
33 st = av_new_stream(output_ctx, output_ctx->nb_streams);
34 - st->stream_copy = 1;
35 - av_set_parameters(output_ctx, NULL);
36
37 icodec = ictx->streams[input_stream_index]->codec;
38 codec = output_ctx->streams[0]->codec;
39 @@ -718,12 +716,12 @@ void copy_out_file(char *fname) {
40 codec->height = icodec->height;
41 codec->has_b_frames = icodec->has_b_frames;
42
43 - if (url_fopen(&output_ctx->pb, pipe, URL_WRONLY) < 0) {
44 + if (avio_open(&output_ctx->pb, pipe, AVIO_FLAG_WRITE) < 0) {
45 fprintf(logout, "Could not open '%s'\n", pipe);
46 exit(1);
47 }
48
49 - av_write_header(output_ctx);
50 + avformat_write_header(output_ctx, NULL);
51 }
52
53 while (1) {