shithub: opus

Download patch

ref: 833d2f0ed7ccfa01d560bccec81d45153c5f3b79
parent: befb83bab4a830aafcbd82c1aa70bae1e6f485bc
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Tue Oct 30 10:23:09 EDT 2018

Remove useless OPUS_SET_EXPERT_FRAME_DURATION() on CELT

frame diration is only handled at the Opus layer. There's no change
in behaviour, just less puzzling code.

Thanks to Dmitriy <dmilvdv@gmail.com> for reporting this.

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -2629,7 +2629,6 @@
                goto bad_arg;
             }
             st->variable_duration = value;
-            celt_encoder_ctl(celt_enc, OPUS_SET_EXPERT_FRAME_DURATION(value));
         }
         break;
         case OPUS_GET_EXPERT_FRAME_DURATION_REQUEST: