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
113113
114114 av_bprint_clear(&sami->full);
115115 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;
117119 av_bprintf(&sami->full, "{\\i1}%s{\\i0}\\N", sami->encoded_source.str);
118120 }
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;
120124 av_bprintf(&sami->full, "%s", sami->encoded_content.str);
121125
122126 end:

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