mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avutil/opt: fix av_opt_is_set_to_default() for array options with no default value
If AVOptionArrayDef.def is NULL, av_opt_is_set_to_default() should return true when the field in the object is NULL. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ name: bool2 default:0 error:
|
||||
name: bool3 default:1 error:
|
||||
name: dict1 default:1 error:
|
||||
name: dict2 default:0 error:
|
||||
name: array_int default:0 error:
|
||||
name: array_int default:1 error:
|
||||
name: array_str default:0 error:
|
||||
name:array_dict default:0 error:
|
||||
name: num default:1 error:
|
||||
@@ -117,7 +117,7 @@ name: bool2 default:1 error:
|
||||
name: bool3 default:1 error:
|
||||
name: dict1 default:1 error:
|
||||
name: dict2 default:1 error:
|
||||
name: array_int default:0 error:
|
||||
name: array_int default:1 error:
|
||||
name: array_str default:1 error:
|
||||
name:array_dict default:1 error:
|
||||
|
||||
@@ -191,7 +191,7 @@ Setting entry with key 'array_int' to value ''
|
||||
Setting entry with key 'array_str' to value 'str0|str\|1|str\\2'
|
||||
Setting entry with key 'array_dict' to value 'k00=v\\\\00:k01=v\,01,k10=v\\=1\\:0'
|
||||
num=0,unum=2147483648,toggle=1,rational=1/1,string=default,escape=\\\=\,,flags=0x00000001,size=200x300,pix_fmt=0bgr,sample_fmt=s16,video_rate=25/1,duration=0.001,color=0xffc0cbff,cl=hexagonal,bin=62696E00,bin1=,bin2=,num64=4294967296,flt=0.333333,dbl=0.333333,bool1=auto,bool2=true,bool3=false,dict1=,dict2=happy\=\\:-),array_int=,array_str=str0|str\\|1|str\\\\2,array_dict=k00\=v\\\\\\\\00:k01\=v\\\,01\,k10\=v\\\\\=1\\\\:0
|
||||
child_num=0,flt=0.333333,dbl=0.333333,array_int=
|
||||
child_num=0,flt=0.333333,dbl=0.333333
|
||||
|
||||
Testing av_set_options_string()
|
||||
Setting options string ''
|
||||
|
||||
Reference in New Issue
Block a user