blob: d08f3b0c5f00d1dab0ba60387b151d4f9db1ea52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
Index: electricsheep-2.7_beta11/electricsheep.c
===================================================================
--- electricsheep-2.7_beta11.orig/electricsheep.c
+++ electricsheep-2.7_beta11/electricsheep.c
@@ -657,7 +657,7 @@ void copy_out_file(char *fname) {
exit(1);
}
- if (0 > av_find_stream_info(ictx)) {
+ if (0 > avformat_find_stream_info(ictx, NULL)) {
fprintf(logout, "%s: could not find codec parameters\n", fname);
exit(1);
}
@@ -698,7 +698,8 @@ void copy_out_file(char *fname) {
}
output_ctx->oformat = ofmt;
- st = av_new_stream(output_ctx, output_ctx->nb_streams);
+ st = avformat_new_stream(output_ctx, NULL);
+ if(st) st->id = output_ctx->nb_streams;
icodec = ictx->streams[input_stream_index]->codec;
codec = output_ctx->streams[0]->codec;
@@ -741,7 +742,7 @@ void copy_out_file(char *fname) {
av_free_packet(&opkt);
av_free_packet(&ipkt);
}
- av_close_input_file(ictx);
+ avformat_close_input(&ictx);
}
time_t search_time;
|