History

avcodec/samidec: Check ff_htmlmarkup_to_ass() return code

Michael Niedermayer committed 9 years ago

Commit 983e3fb1 parent f4ae3cc1 file · +6 −2Browse files

Unified · Split

libavcodec/samidec.c+6−2
@@ -113,10 +113,14 @@ static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src) · 112 unmodified lines
113 113
114 av_bprint_clear(&sami->full);114 av_bprint_clear(&sami->full);
115 if (sami->source.len) {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 av_bprintf(&sami->full, "{\\i1}%s{\\i0}\\N", sami->encoded_source.str);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 av_bprintf(&sami->full, "%s", sami->encoded_content.str);124 av_bprintf(&sami->full, "%s", sami->encoded_content.str);
121 125
122end:126end:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t