1 |
aballier 15/02/06 15:52:12 |
2 |
|
3 |
Added: electricsheep-2.7_beta11-ffmpeg2.patch |
4 |
Log: |
5 |
fix build with latest ffmpeg versions, bug #539116 |
6 |
|
7 |
Signed-off-by: aballier@g.o |
8 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg2.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg2.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/electricsheep/files/electricsheep-2.7_beta11-ffmpeg2.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: electricsheep-2.7_beta11-ffmpeg2.patch |
17 |
=================================================================== |
18 |
Index: electricsheep-2.7_beta11/electricsheep.c |
19 |
=================================================================== |
20 |
--- electricsheep-2.7_beta11.orig/electricsheep.c |
21 |
+++ electricsheep-2.7_beta11/electricsheep.c |
22 |
@@ -657,7 +657,7 @@ void copy_out_file(char *fname) { |
23 |
exit(1); |
24 |
} |
25 |
|
26 |
- if (0 > av_find_stream_info(ictx)) { |
27 |
+ if (0 > avformat_find_stream_info(ictx, NULL)) { |
28 |
fprintf(logout, "%s: could not find codec parameters\n", fname); |
29 |
exit(1); |
30 |
} |
31 |
@@ -698,7 +698,8 @@ void copy_out_file(char *fname) { |
32 |
} |
33 |
output_ctx->oformat = ofmt; |
34 |
|
35 |
- st = av_new_stream(output_ctx, output_ctx->nb_streams); |
36 |
+ st = avformat_new_stream(output_ctx, NULL); |
37 |
+ if(st) st->id = output_ctx->nb_streams; |
38 |
|
39 |
icodec = ictx->streams[input_stream_index]->codec; |
40 |
codec = output_ctx->streams[0]->codec; |
41 |
@@ -741,7 +742,7 @@ void copy_out_file(char *fname) { |
42 |
av_free_packet(&opkt); |
43 |
av_free_packet(&ipkt); |
44 |
} |
45 |
- av_close_input_file(ictx); |
46 |
+ avformat_close_input(&ictx); |
47 |
} |
48 |
|
49 |
time_t search_time; |