Browse Source

avcodec/ccaption_dec: Remove the GOTO statement

tags/n2.7
Pranav Vaish Michael Niedermayer 10 years ago
parent
commit
f669d8c1b7
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/ccaption_dec.c

+ 1
- 3
libavcodec/ccaption_dec.c View File

@@ -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;
}



Loading…
Cancel
Save