diff options
author | Pranav Vaish <pranav.vaish@gmail.com> | 2015-04-02 02:28:23 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-02 00:06:44 +0200 |
commit | f669d8c1b79013d9f2dedb67cac22334dd78e38c (patch) | |
tree | 96e0618fab5d7e50d2d2b78338669d0d72accdab | |
parent | 53bf6b155cee8cdf0fd12fe49e4ccfb9cf6714a2 (diff) | |
download | ffmpeg-f669d8c1b79013d9f2dedb67cac22334dd78e38c.tar.gz |
avcodec/ccaption_dec: Remove the GOTO statement
-rw-r--r-- | libavcodec/ccaption_dec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 06981cc28f..da43ca6b33 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -182,15 +182,13 @@ static av_cold int init_decoder(AVCodecContext *avctx) ctx->rollup = 2; ret = ff_ass_subtitle_header_default(avctx); if(ret < 0) { - goto fail; + return ret; } /* allocate pkt buffer */ ctx->pktbuf = av_buffer_alloc(128); if( !ctx->pktbuf) { ret = AVERROR(ENOMEM); } - -fail: return ret; } |