Fix crash with still images.
authorCarl Hetherington <cth@carlh.net>
Wed, 1 Aug 2012 11:04:33 +0000 (12:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 1 Aug 2012 11:04:33 +0000 (12:04 +0100)
src/lib/film_state.cc

index e23bf9148595b8905b8f31cfccb48ab9f80d6e51..e0ad20417adbee8f450d241df6df144e70918cf1 100644 (file)
@@ -275,9 +275,8 @@ FilmState::bytes_per_sample () const
        case AV_SAMPLE_FMT_S16:
                return 2;
        default:
-               assert (false);
+               return 0;
        }
 
-       assert (false);
        return 0;
 }