[FFmpeg-devel,3/4] lavc/libaribb24: add missing type struct members to AVOptions

Submitted by Jan Ekström on Feb. 11, 2019, 1:06 a.m.

Details

Message ID 20190211010654.24762-3-jeebjp@gmail.com
State Accepted
Commit 1ed9e8e9377d4c63e2921efc0b1e444120c06de1
Headers show

Commit Message

Jan Ekström Feb. 11, 2019, 1:06 a.m.
---
 libavcodec/libaribb24.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Feb. 12, 2019, 12:14 a.m.
On Mon, Feb 11, 2019 at 03:06:53AM +0200, Jan Ekström wrote:
> ---
>  libavcodec/libaribb24.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

LGTM

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c
index 43da2b675d..28f20ca767 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -367,9 +367,9 @@  static void libaribb24_flush(AVCodecContext *avctx)
 #define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
 static const AVOption options[] = {
     { "aribb24-base-path", "set the base path for the libaribb24 library",
-      OFFSET(aribb24_base_path), AV_OPT_TYPE_STRING, { 0 }, 0, 0, SD },
+      OFFSET(aribb24_base_path), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, SD },
     { "aribb24-skip-ruby-text", "skip ruby text blocks during decoding",
-      OFFSET(aribb24_skip_ruby), AV_OPT_TYPE_BOOL, { 1 }, 0, 1, SD },
+      OFFSET(aribb24_skip_ruby), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, SD },
     { NULL }
 };