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

Patch for programs with empty audio/video streams #12655

Merged
merged 2 commits into from
Aug 12, 2017

Conversation

joaoppri
Copy link
Contributor

Description

Patch for programs with empty audio/video streams

Motivation and Context

With this fix it will check if the program has a valid audio or video stream.
Previous it would only check if it had streams, but not the type and if they were valid.

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the Code guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have added tests to cover my change
  • All new and existing tests passed

m_program = i;
int idx = m_pFormatContext->programs[i]->stream_index[j];
AVStream *st = m_pFormatContext->streams[idx];
if ((st->codec->codec_type == AVMEDIA_TYPE_VIDEO && st->codec_info_nb_frames > 0) ||

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@FernetMenta FernetMenta merged commit a9ea915 into xbmc:master Aug 12, 2017
@Rechi Rechi added Type: Fix non-breaking change which fixes an issue v18 Leia Component: Video labels Aug 13, 2017
@Rechi Rechi added this to the L 18.0-alpha1 milestone Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants