Advertisement
elvman

Untitled

Apr 15th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. --- flvenc.c 2016-04-15 16:08:00.000000000 +0300
  2. +++ flvenc_mod.c 2016-04-15 16:08:44.000000000 +0300
  3. @@ -469,12 +469,12 @@
  4.  
  5. if (flv->delay == AV_NOPTS_VALUE)
  6. {
  7. - int64_t millis;
  8. + /*int64_t millis;
  9. struct timeval tv;
  10. gettimeofday(&tv, NULL);
  11. - millis = 1000 * tv.tv_sec + tv.tv_usec / 1000;
  12. + millis = 1000 * tv.tv_sec + tv.tv_usec / 1000;*/
  13.  
  14. - flv->delay = millis;//-pkt->dts;
  15. + flv->delay = -pkt->dts;
  16. }
  17.  
  18. if (pkt->dts < -flv->delay) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement