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

RTSP stream hangs on camera going offline #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

magistrser
Copy link

Also when camera returns stream still hangs. I debugged it a little and find out that for

avcodec_decode_video2(this->video_dec_ctx, this->frame, &got_frame, &(this->packet));

got_frame still be 1 even if avcodec_decode_video2 returns 0. It leads to infinity loop in grab function.
I hope this fix is good enough, or may be you know the right way to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant