Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -379,6 +379,9 @@ static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen · 378 unmodified lines | |||
| 379 | FILE* f; | 379 | FILE* f; |
| 380 | unsigned int pot3[5] = { 3*3*3*3, 3*3*3, 3*3, 3, 1 }; | 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 | f = avpriv_fopen_utf8(filename, "w"); | 385 | f = avpriv_fopen_utf8(filename, "w"); |
| 383 | if (!f) { | 386 | if (!f) { |
| 384 | int err = AVERROR(EINVAL); | 387 | int err = AVERROR(EINVAL); |