{"name": "opt_find", "code": "__int64 __fastcall opt_find ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ , unsigned int @@a5@@ ) { __int64 @@result@@ ; __int64 @@v6@@ ; @@v6@@ = av_opt_find ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ , @@a5@@ ) ; if ( ! @@v6@@ || * ( _DWORD * ) ( @@v6@@ + Number ) ) @@result@@ = @@v6@@ ; else @@result@@ = Number L ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]}
{"name": "opt_default", "code": "__int64 __fastcall opt_default ( __int64 @@a1@@ , const char * @@a2@@ , __int64 @@a3@@ ) { __int64 v3 ; __int64 v4 ; __int64 v5 ; __int64 @@result@@ ; __int64 v7 ; __int64 @@v9@@ ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; __int64 @@v13@@ ; char @@v14@@ [ Number ] ; unsigned int @@v15@@ ; unsigned int @@v16@@ ; char * @@v17@@ ; int @@v18@@ ; __int64 @@v19@@ ; @@v18@@ = Number ; @@v13@@ = avcodec_get_class ( ) ; @@v12@@ = avformat_get_class ( ) ; if ( ! strcmp ( @@a2@@ , String ) || ! strcmp ( @@a2@@ , String ) ) av_log_set_level ( Number L ) ; @@v17@@ = strchr ( @@a2@@ , Number ) ; if ( ! @@v17@@ ) @@v17@@ = ( char * ) & @@a2@@ [ strlen ( @@a2@@ ) ] ; v3 = Number L ; if ( ( unsigned __int64 ) ( @@v17@@ - @@a2@@ + Number ) <= Number ) v3 = @@v17@@ - @@a2@@ + Number ; av_strlcpy ( @@v14@@ , @@a2@@ , v3 ) ; @@v19@@ = opt_find ( ( __int64 ) & @@v13@@ , ( __int64 ) @@v14@@ , Number L , Number , Number ) ; if ( @@v19@@ || ( * @@a2@@ == Number || * @@a2@@ == Number || * @@a2@@ == Number ) && ( @@v19@@ = opt_find ( ( __int64 ) & @@v13@@ , ( __int64 ) ( @@a2@@ + Number ) , Number L , Number , Number ) ) != Number ) { if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v4 = Number L ; else v4 = Number L ; av_dict_set ( & codec_opts , @@a2@@ , @@a3@@ , v4 ) ; @@v18@@ = Number ; } @@v19@@ = opt_find ( ( __int64 ) & @@v12@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ; if ( @@v19@@ ) { if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v5 = Number L ; else v5 = Number L ; av_dict_set ( & format_opts , @@a2@@ , @@a3@@ , v5 ) ; if ( @@v18@@ ) av_log ( Number L , Number L , String , @@a2@@ ) ; @@v18@@ = Number ; } @@v11@@ = sws_get_class ( ) ; if ( ! @@v18@@ && opt_find ( ( __int64 ) & @@v11@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ) { @@v16@@ = av_opt_set ( sws_opts , @@a2@@ , @@a3@@ , Number L ) ; if ( ( @@v16@@ & Number ) != Number ) { av_log ( Number L , Number L , String , @@a2@@ ) ; return @@v16@@ ; } @@v18@@ = Number ; } @@v10@@ = swr_get_class ( ) ; if ( ! @@v18@@ ) { @@v19@@ = opt_find ( ( __int64 ) & @@v10@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ; if ( @@v19@@ ) { @@v9@@ = swr_alloc ( ) ; @@v15@@ = av_opt_set ( @@v9@@ , @@a2@@ , @@a3@@ , Number L ) ; swr_free ( & @@v9@@ ) ; if ( ( @@v15@@ & Number ) != Number ) { av_log ( Number L , Number L , String , @@a2@@ ) ; return @@v15@@ ; } if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v7 = Number L ; else v7 = Number L ; av_dict_set ( & swr_opts , @@a2@@ , @@a3@@ , v7 ) ; @@v18@@ = Number ; } } if ( @@v18@@ ) @@result@@ = Number L ; else @@result@@ = Number L ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v19", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v14", "t": {"T": 2, "n": 128, "s": 1, "t": "char"}, "location": "s168"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s176"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s184"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s192"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s200"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s208"}, {"n": "v17", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v16", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s36"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}]} {"name": "filter_codec_opts", "code": "__int64 __fastcall filter_codec_opts ( __int64 @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ ) { int v5 ; __int64 v6 ; int v7 ; int v8 ; __int64 @@v13@@ ; __int64 @@v14@@ ; char * @@v15@@ ; char @@v16@@ ; unsigned int @@v17@@ ; _QWORD * @@v18@@ ; @@v14@@ = Number L ; @@v18@@ = Number L ; if ( * ( _QWORD * ) ( @@a3@@ + Number ) ) v5 = Number ; else v5 = Number ; @@v17@@ = v5 ; @@v16@@ = Number ; @@v13@@ = avcodec_get_class ( ) ; if ( ! @@a5@@ ) { if ( * ( _QWORD * ) ( @@a3@@ + Number ) ) v6 = avcodec_find_encoder ( @@a2@@ ) ; else v6 = avcodec_find_decoder ( @@a2@@ ) ; @@a5@@ = v6 ; } v7 = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a4@@ + Number ) + Number L ) ; if ( v7 == Number ) { @@v16@@ = Number ; @@v17@@ |= Number ; } else if ( v7 <= Number ) { if ( v7 ) { if ( v7 == Number ) { @@v16@@ = Number ; @@v17@@ |= Number ; } } else { @@v16@@ = Number ; @@v17@@ |= Number ; } } while ( Number ) { @@v18@@ = ( _QWORD * ) av_dict_get ( @@a1@@ , & unk_6A4B , @@v18@@ , Number L ) ; if ( ! @@v18@@ ) return @@v14@@ ; @@v15@@ = strchr ( ( const char * ) * @@v18@@ , Number ) ; if ( ! @@v15@@ ) goto LABEL_22 ; v8 = check_stream_specifier ( @@a3@@ , @@a4@@ , @@v15@@ + Number ) ; if ( v8 ) { if ( v8 != Number ) exit_program ( Number ) ; * @@v15@@ = Number ; LABEL_22 : if ( av_opt_find ( & @@v13@@ , * @@v18@@ , Number L , @@v17@@ , Number L ) || ! @@a5@@ || * ( _QWORD * ) ( @@a5@@ + Number ) && av_opt_find ( @@a5@@ + Number , * @@v18@@ , Number L , @@v17@@ , Number L ) ) { av_dict_set ( & @@v14@@ , * @@v18@@ , @@v18@@ [ Number ] , Number L ) ; } else if ( @@v16@@ == * ( _BYTE * ) * @@v18@@ && av_opt_find ( & @@v13@@ , * @@v18@@ + Number L , Number L , @@v17@@ , Number L ) ) { av_dict_set ( & @@v14@@ , * @@v18@@ + Number L , @@v18@@ [ Number ] , Number L ) ; } if ( @@v15@@ ) * @@v15@@ = Number ; } } }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v18", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v17", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v16", "t": {"T": 1, "n": "char", "s": 1}, "location": "s21"}, {"n": "v15", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}]}