diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-05 14:52:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-05 14:52:23 +0000 |
| commit | d8a2e55855b50eda28ec7d394449274f5e085bd6 (patch) | |
| tree | 9d3110b4c306a80800259b6fd4b9045531e17064 /src/lib/ffmpeg.cc | |
| parent | ebe451c248c3accd1a564bcad5eabf9d32a971f3 (diff) | |
Fix some coverity-reported stuff.
Diffstat (limited to 'src/lib/ffmpeg.cc')
| -rw-r--r-- | src/lib/ffmpeg.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index d3653e311..b7ae04b06 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -146,7 +146,8 @@ void FFmpeg::setup_video () { boost::mutex::scoped_lock lm (_mutex); - + + assert (_video_stream >= 0); AVCodecContext* context = _format_context->streams[_video_stream]->codec; AVCodec* codec = avcodec_find_decoder (context->codec_id); |
