Skip to content

[Feature Request]: Issues found PVS studio static analyzer: avplayer_source.cpp #4917

Description

@Seraphimt

Checklist

  • I have searched for a similar issue in this repository and did not find one.

Description

Analyzer message:
V547 Expression m_streams.size() >= 0 is always true. Unsigned type value is always >= 0. avplayer_source.cpp 132

The typo is obvious.

class AvPlayerSource{
  ....
  std::vector<Stream> m_streams;
}

bool AvPlayerSource::FindStreams() {
  ....
  return m_streams.size() >= 0;
}

Link to an article with additional information: https://pvs-studio.com/en/blog/posts/cpp/1405/

Reason

Fixing potential bug and\or code quality.

Examples

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions