Browse Source

lavc/libzvbi: remove deprecated API usage

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Josh de Kock <josh@itanimul.li>
tags/n3.3
Josh de Kock 8 years ago
parent
commit
2dafbae994
No known key found for this signature in database GPG Key ID: D052D40DDEF9703D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libzvbi-teletextdec.c

+ 1
- 1
libavcodec/libzvbi-teletextdec.c View File

@@ -395,7 +395,7 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si
if (!ctx->vbi) {
if (!(ctx->vbi = vbi_decoder_new()))
return AVERROR(ENOMEM);
if (!vbi_event_handler_add(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
if (!vbi_event_handler_register(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
vbi_decoder_delete(ctx->vbi);
ctx->vbi = NULL;
return AVERROR(ENOMEM);


Loading…
Cancel
Save