History

avcodec/libzvbi-teletextdec: replace data_size with got_sub_ptr for better readability

Limin Wang committed 6 years ago

Commit 8ea4eff1 parent 766888e1 file · +3 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libzvbi-teletextdec.c+3−3
@@ -636,7 +636,7 @@ static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size) · 635 unmodified lines
636 return lines;636 return lines;
637}637}
638 638
639static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt)639static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *pkt)
640{640{
641 TeletextContext *ctx = avctx->priv_data;641 TeletextContext *ctx = avctx->priv_data;
642 AVSubtitle *sub = data;642 AVSubtitle *sub = data;
@@ -724,9 +724,9 @@ FF_ENABLE_DEPRECATION_WARNINGS · 81 unmodified lines
724 ctx->nb_pages--;724 ctx->nb_pages--;
725 725
726 if (ret >= 0)726 if (ret >= 0)
727 *data_size = 1;727 *got_sub_ptr = 1;
728 } else728 } else
729 *data_size = 0;729 *got_sub_ptr = 0;
730 730
731 return ret;731 return ret;
732}732}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t