Unified · Split
| @@ -113,10 +113,14 @@ static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src) · 112 unmodified lines | ||
| 113 | 113 | |
| 114 | 114 | av_bprint_clear(&sami->full); |
| 115 | 115 | if (sami->source.len) { |
| 116 | − ff_htmlmarkup_to_ass(avctx, dst_source, sami->source.str); | |
| 116 | + ret = ff_htmlmarkup_to_ass(avctx, dst_source, sami->source.str); | |
| 117 | + if (ret < 0) | |
| 118 | + goto end; | |
| 117 | 119 | av_bprintf(&sami->full, "{\\i1}%s{\\i0}\\N", sami->encoded_source.str); |
| 118 | 120 | } |
| 119 | − ff_htmlmarkup_to_ass(avctx, dst_content, sami->content.str); | |
| 121 | + ret = ff_htmlmarkup_to_ass(avctx, dst_content, sami->content.str); | |
| 122 | + if (ret < 0) | |
| 123 | + goto end; | |
| 120 | 124 | av_bprintf(&sami->full, "%s", sami->encoded_content.str); |
| 121 | 125 | |
| 122 | 126 | end: |