This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
Fix G729 packet duration
Without this correction, timestamp is not incremented in case of transcoding
pull/1286/head
Nathanaël Semhoun
5 years ago
parent
01f06ceb3a
commit
c76b0b7ef6
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/codeclib.c
+ 1
- 0
lib/codeclib.c
View File
@ -2467,6 +2467,7 @@ static int bcg729_encoder_input(encoder_t *enc, AVFrame **frame) {
enc
-
>
avpkt
-
>
size
=
len
;
enc
-
>
avpkt
-
>
pts
=
(
*
frame
)
-
>
pts
;
enc
-
>
avpkt
-
>
duration
=
len
*
8
;
/
/
Duration
is
used
by
encoder_input_data
for
pts
calculation
return
0
;
}
Write
Preview
Loading…
Cancel
Save