Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-06 02:50:58 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-08 18:02:02 +0300
commit983e3fbcc5c976db8f3ba6231fca86355a33cb77 (patch)
tree871c4f17124f0634b9a44be058576c2db46c4210 /libavcodec/samidec.c
parentf4ae3cce64bd46b1d539bdeac39753f83015f114 (diff)
avcodec/samidec: Check ff_htmlmarkup_to_ass() return code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/samidec.c')
-rw-r--r--libavcodec/samidec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/samidec.c b/libavcodec/samidec.c
index 16f3f58c1c..2620424750 100644
--- a/libavcodec/samidec.c
+++ b/libavcodec/samidec.c
@@ -113,10 +113,14 @@ static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src)
av_bprint_clear(&sami->full);
if (sami->source.len) {
- ff_htmlmarkup_to_ass(avctx, dst_source, sami->source.str);
+ ret = ff_htmlmarkup_to_ass(avctx, dst_source, sami->source.str);
+ if (ret < 0)
+ goto end;
av_bprintf(&sami->full, "{\\i1}%s{\\i0}\\N", sami->encoded_source.str);
}
- ff_htmlmarkup_to_ass(avctx, dst_content, sami->content.str);
+ ret = ff_htmlmarkup_to_ass(avctx, dst_content, sami->content.str);
+ if (ret < 0)
+ goto end;
av_bprintf(&sami->full, "%s", sami->encoded_content.str);
end: