Message ID | 1511744002-21548-1-git-send-email-bianpan2016@163.com |
---|---|
State | Superseded |
Headers | show |
On Mon, Nov 27, 2017 at 08:53:22 +0800, Pan Bian wrote: > + if (!dupsrc) > + return AVERROR(ENOMEM); > + Tabs are not allowed, please check your indentation. You can use tools/patcheck to find these kinds of issues. Moritz
diff --git a/libavcodec/samidec.c b/libavcodec/samidec.c index 2620424..35fcc41 100644 --- a/libavcodec/samidec.c +++ b/libavcodec/samidec.c @@ -48,6 +48,9 @@ static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src) AVBPrint *dst_content = &sami->encoded_content; AVBPrint *dst_source = &sami->encoded_source; + if (!dupsrc) + return AVERROR(ENOMEM); + av_bprint_clear(&sami->encoded_content); av_bprint_clear(&sami->content); av_bprint_clear(&sami->encoded_source);