Unified · Split
| @@ -379,6 +379,9 @@ static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen · 378 unmodified lines | ||
| 379 | 379 | FILE* f; |
| 380 | 380 | unsigned int pot3[5] = { 3*3*3*3, 3*3*3, 3*3, 3, 1 }; |
| 381 | 381 | |
| 382 | + if (!sc->coarseend->last) | |
| 383 | + return AVERROR(EINVAL); // No frames ? | |
| 384 | + | |
| 382 | 385 | f = avpriv_fopen_utf8(filename, "w"); |
| 383 | 386 | if (!f) { |
| 384 | 387 | int err = AVERROR(EINVAL); |