Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve audio timestamp bugs and video dts/pts bugs #1621

Merged
merged 3 commits into from
Mar 1, 2020
Merged

solve audio timestamp bugs and video dts/pts bugs #1621

merged 3 commits into from
Mar 1, 2020

Conversation

runner365
Copy link
Contributor

1,solve audio timestamp bugs;
2,solve video dts increase bugs

@winlinvip winlinvip changed the base branch from develop to 4.0release March 1, 2020 02:06

//callback last media data in data buffer
on_callback(callback, _last_pid, key_path, _last_dts, _last_pts);

pes_parse(data_p+npos, npos, &ret_data_p, ret_size, _last_dts, _last_pts);
pes_parse(data_p+npos, npos, &ret_data_p, ret_size, dts, pts);
Copy link
Member

@winlinvip winlinvip Mar 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No return value checked.

TRANS_BY_GPT3

_rtmp_queue.insert_rtmp_data((unsigned char*)data, size, (int64_t)dts, SrsFrameTypeAudio);
rtmp_write_work();
} else {
rtmp_write_packet(SrsFrameTypeAudio, dts, data, size);
Copy link
Member

@winlinvip winlinvip Mar 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check the return value, otherwise there may be unknown behavior.

TRANS_BY_GPT3

@codecov-io
Copy link

codecov-io commented Mar 1, 2020

Codecov Report

❗ No coverage uploaded for pull request base (4.0release@7f4cc62). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             4.0release   #1621   +/-   ##
============================================
  Coverage              ?   68.6%           
============================================
  Files                 ?      96           
  Lines                 ?   40708           
  Branches              ?       0           
============================================
  Hits                  ?   27927           
  Misses                ?   12781           
  Partials              ?       0
Impacted Files Coverage Δ
trunk/src/app/srs_app_config.cpp 78.13% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f4cc62...f917cc1. Read the comment docs.

TRANS_BY_GPT3

@winlinvip winlinvip merged commit 492ea6e into ossrs:4.0release Mar 1, 2020
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants