mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/ccaption_dec: Remove the GOTO statement
This commit is contained in:
parent
53bf6b155c
commit
f669d8c1b7
|
@ -182,15 +182,13 @@ static av_cold int init_decoder(AVCodecContext *avctx)
|
||||||
ctx->rollup = 2;
|
ctx->rollup = 2;
|
||||||
ret = ff_ass_subtitle_header_default(avctx);
|
ret = ff_ass_subtitle_header_default(avctx);
|
||||||
if(ret < 0) {
|
if(ret < 0) {
|
||||||
goto fail;
|
return ret;
|
||||||
}
|
}
|
||||||
/* allocate pkt buffer */
|
/* allocate pkt buffer */
|
||||||
ctx->pktbuf = av_buffer_alloc(128);
|
ctx->pktbuf = av_buffer_alloc(128);
|
||||||
if( !ctx->pktbuf) {
|
if( !ctx->pktbuf) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
fail:
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue