This may help CID1452449 Uninitialized scalar variable
Unified · Split
| @@ -18,6 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | +#include "libavutil/avassert.h" | |
| 21 | 22 | #include "libavutil/avstring.h" |
| 22 | 23 | #include "libavutil/opt.h" |
| 23 | 24 | #include "url.h" |
| @@ -135,6 +136,8 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence) · 111 unmodified lines | ||
| 135 | 136 | case SEEK_END: |
| 136 | 137 | new_pos = end + pos; |
| 137 | 138 | break; |
| 139 | + default: | |
| 140 | + av_assert0(0); | |
| 138 | 141 | } |
| 139 | 142 | if (new_pos < c->start) |
| 140 | 143 | return AVERROR(EINVAL); |