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
636636 return lines;
637637 }
638638
639−static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt)
639+static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *pkt)
640640 {
641641 TeletextContext *ctx = avctx->priv_data;
642642 AVSubtitle *sub = data;
@@ -724,9 +724,9 @@ FF_ENABLE_DEPRECATION_WARNINGS · 81 unmodified lines
724724 ctx->nb_pages--;
725725
726726 if (ret >= 0)
727− *data_size = 1;
727+ *got_sub_ptr = 1;
728728 } else
729− *data_size = 0;
729+ *got_sub_ptr = 0;
730730
731731 return ret;
732732 }

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