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().
Unified · Split
| @@ -68,14 +68,14 @@ typedef struct ARIBCaptionContext { · 67 unmodified lines | ||
| 68 | 68 | |
| 69 | 69 | int subtitle_type; |
| 70 | 70 | int encoding_scheme; |
| 71 | − bool ass_single_rect; | |
| 71 | + int ass_single_rect; | |
| 72 | 72 | char *font; |
| 73 | − bool replace_fullwidth_ascii; | |
| 74 | − bool force_stroke_text; | |
| 75 | − bool ignore_background; | |
| 76 | − bool ignore_ruby; | |
| 73 | + int replace_fullwidth_ascii; | |
| 74 | + int force_stroke_text; | |
| 75 | + int ignore_background; | |
| 76 | + int ignore_ruby; | |
| 77 | 77 | float stroke_width; |
| 78 | − bool replace_drcs; | |
| 78 | + int replace_drcs; | |
| 79 | 79 | |
| 80 | 80 | int64_t pts; |
| 81 | 81 | AVRational time_base; |