~vcs-imports/mplayer/trunk

Viewing all changes in revision 37997.

  • Committer: reimar
  • Date: 2019-09-27 07:29:07 UTC
  • Revision ID: svn-v4:b3059339-0415-0410-9bf9-f77b7e298cf2:trunk:38152
demux_lavf: sanity-check stream ID before using it.

ds->id may have been initialized via -vid option to
a value that does not correspond to a currently
existing stream.
Thus check that it's valid before using it.
Fixes crash when playing mp4 files and
specifying e.g. -vid 7777.
Reported by Raad Haddad (raadfhaddad at gmail)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: