History

lavc/libaribcaption: switch all `bool` context variables to `int`

On some environments, a `bool` variable is of smaller size than `int`. As AV_OPT_TYPE_BOOL is internally handled as sizeof(int), if a `bool` option was set on such an environment, the memory of following variables would be filled. Additionally, set values may be destroyed by av_opt_copy().

TADANO Tokumei committed 3 years ago

Commit 82faba81 parent ff342991 file · +6 −6Browse files

Unified · Split

libavcodec/libaribcaption.c+6−6
@@ -68,14 +68,14 @@ typedef struct ARIBCaptionContext { · 67 unmodified lines
68 68
69 int subtitle_type;69 int subtitle_type;
70 int encoding_scheme;70 int encoding_scheme;
71 bool ass_single_rect;71 int ass_single_rect;
72 char *font;72 char *font;
73 bool replace_fullwidth_ascii;73 int replace_fullwidth_ascii;
74 bool force_stroke_text;74 int force_stroke_text;
75 bool ignore_background;75 int ignore_background;
76 bool ignore_ruby;76 int ignore_ruby;
77 float stroke_width;77 float stroke_width;
78 bool replace_drcs;78 int replace_drcs;
79 79
80 int64_t pts;80 int64_t pts;
81 AVRational time_base;81 AVRational time_base;

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