Commit f669d8c1 authored by Pranav Vaish's avatar Pranav Vaish Committed by Michael Niedermayer

avcodec/ccaption_dec: Remove the GOTO statement

parent 53bf6b15
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment