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 | 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; |