34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
--- libffsox-2/ffsox_frame.c.orig 2018-05-03 16:26:40.651562783 +0200
|
|
+++ libffsox-2/ffsox_frame.c 2018-05-03 16:27:43.450930824 +0200
|
|
@@ -48,7 +48,7 @@
|
|
goto frame;
|
|
}
|
|
|
|
- if (NULL!=codec&&(codec->capabilities&CODEC_CAP_VARIABLE_FRAME_SIZE))
|
|
+ if (NULL!=codec&&(codec->capabilities&AV_CODEC_CAP_VARIABLE_FRAME_SIZE))
|
|
nb_samples=10000;
|
|
else
|
|
nb_samples=cc->frame_size;
|
|
--- libffsox-2/ffsox_frame_writer.c.orig 2018-05-03 16:27:03.067335575 +0200
|
|
+++ libffsox-2/ffsox_frame_writer.c 2018-05-03 16:28:05.418712077 +0200
|
|
@@ -66,7 +66,7 @@
|
|
goto open;
|
|
|
|
if (fw->so.fc->oformat->flags&AVFMT_GLOBALHEADER)
|
|
- fw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER;
|
|
+ fw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER;
|
|
|
|
fw->so.st->time_base=fw->so.cc->time_base;
|
|
//fw->so.st->time_base=fr->si.st->time_base;
|
|
--- libffsox-2/ffsox_packet_writer.c.orig 2018-05-03 16:27:24.836116183 +0200
|
|
+++ libffsox-2/ffsox_packet_writer.c 2018-05-03 16:28:19.530571557 +0200
|
|
@@ -65,7 +65,7 @@
|
|
pw->so.cc->codec_tag=0;
|
|
|
|
if (pw->so.fc->oformat->flags&AVFMT_GLOBALHEADER)
|
|
- pw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER;
|
|
+ pw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER;
|
|
|
|
if (ffsox_sink_append(so,&pw->si,&pw->so)<0) {
|
|
DMESSAGE("appending output stream");
|