Small cleanup.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index 46e851e372439a232169b77f1e0a229559dc831a..74eb8934ca5e87ffbde809bf3e9fb70b2360014d 100644 (file)
@@ -101,11 +101,9 @@ FFmpegDecoder::~FFmpegDecoder ()
 void
 FFmpegDecoder::setup_general ()
 {
-       int r;
-       
        av_register_all ();
 
-       if ((r = avformat_open_input (&_format_context, _film->content_path().c_str(), 0, 0)) != 0) {
+       if (avformat_open_input (&_format_context, _film->content_path().c_str(), 0, 0) < 0) {
                throw OpenFileError (_film->content_path ());
        }