Browse Source

Fix G729 packet duration

Without this correction, timestamp is not incremented in case of transcoding

(cherry picked from commit c76b0b7ef6)

Change-Id: I64bba46b276cb722f1caede68eb21fecd60ca955
mr9.4
Nathanaël Semhoun 5 years ago
committed by Richard Fuchs
parent
commit
b2302b9de9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/codeclib.c

+ 1
- 0
lib/codeclib.c View File

@ -2219,6 +2219,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;
}


Loading…
Cancel
Save