FreeBSD Bugzilla – Attachment 199620 Details for
Bug 233590
multimedia/obs-studio: fix fdk-aac v2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
obs-studio-22.0.3_2.patch
obs-studio-22.0.3_2.patch (text/plain), 1.33 KB, created by
takefu
on 2018-11-27 23:22:03 UTC
(
hide
)
Description:
obs-studio-22.0.3_2.patch
Filename:
MIME Type:
Creator:
takefu
Created:
2018-11-27 23:22:03 UTC
Size:
1.33 KB
patch
obsolete
>diff -udprN /usr/ports/multimedia/obs-studio/files/patch-plugins_obs-libfdk_obs-libfdk.c ./files/patch-plugins_obs-libfdk_obs-libfdk.c >--- /usr/ports/multimedia/obs-studio/files/patch-plugins_obs-libfdk_obs-libfdk.c 1970-01-01 00:00:00.000000000 +0000 >+++ ./files/patch-plugins_obs-libfdk_obs-libfdk.c 2018-11-27 11:37:57.082703000 +0000 >@@ -0,0 +1,28 @@ >+--- plugins/obs-libfdk/obs-libfdk.c.orig 2018-09-02 22:36:02 UTC >++++ plugins/obs-libfdk/obs-libfdk.c >+@@ -9,6 +9,10 @@ >+ >+ #include <fdk-aac/aacenc_lib.h> >+ >++#define FDKENC_VER_AT_LEAST(vl0, vl1) \ >++ (defined(AACENCODER_LIB_VL0) && \ >++ ((AACENCODER_LIB_VL0 > vl0) || \ >++ (AACENCODER_LIB_VL0 == vl0 && AACENCODER_LIB_VL1 >= vl1))) >+ >+ static const char *libfdk_get_error(AACENC_ERROR err) >+ { >+@@ -262,9 +266,14 @@ static bool libfdk_encode(void *data, struct encoder_f >+ >+ *received_packet = true; >+ >++#if FDKENC_VER_AT_LEAST(4, 0) >++ packet->pts = enc->total_samples - enc->info.nDelay; >++ packet->dts = enc->total_samples - enc->info.nDelay; >++#else >+ packet->pts = enc->total_samples - >+ enc->info.encoderDelay; // TODO: Just a guess, find out if that's actualy right >+ packet->dts = enc->total_samples - enc->info.encoderDelay; >++#endif >+ packet->data = enc->packet_buffer; >+ packet->size = out_args.numOutBytes; >+ packet->type = OBS_ENCODER_AUDIO;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233590
: 199620