[FFmpeg-cvslog] avcodec/ccaption_dec: Remove the GOTO statement
Pranav Vaish
git at videolan.org
Thu Apr 2 00:27:33 CEST 2015
ffmpeg | branch: master | Pranav Vaish <pranav.vaish at gmail.com> | Thu Apr 2 02:46:23 2015 +0530| [f669d8c1b79013d9f2dedb67cac22334dd78e38c] | committer: Michael Niedermayer
avcodec/ccaption_dec: Remove the GOTO statement
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f669d8c1b79013d9f2dedb67cac22334dd78e38c
---
libavcodec/ccaption_dec.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 06981cc..da43ca6 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;
}
More information about the ffmpeg-cvslog
mailing list