Unified · Split
| @@ -106,7 +106,7 @@ int avtext_context_close(AVTextFormatContext **ptctx) · 105 unmodified lines | ||
| 106 | 106 | int ret = 0; |
| 107 | 107 | |
| 108 | 108 | if (!tctx) |
| 109 | − return EINVAL; | |
| 109 | + return AVERROR(EINVAL); | |
| 110 | 110 | |
| 111 | 111 | av_hash_freep(&tctx->hash); |
| 112 | 112 | |
| @@ -590,7 +590,7 @@ int avtextwriter_context_close(AVTextWriterContext **pwctx) · 477 unmodified lines | ||
| 590 | 590 | int ret = 0; |
| 591 | 591 | |
| 592 | 592 | if (!wctx) |
| 593 | − return EINVAL; | |
| 593 | + return AVERROR(EINVAL); | |
| 594 | 594 | |
| 595 | 595 | if (wctx->writer) { |
| 596 | 596 | if (wctx->writer->uninit) |